Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

dunder-magic

An ever-growing collection of bizzare/cursed projects I've created to demonstrate the sheer power of dunder methods. From lists who never raise IndexErrors by wrapping the index, to functions whose invocation is performed with sqaure brackets.

I try to document the files as clearly as possible. Enjoy!

Files

wrappedlist.py - demonstrating __getitem__, __setitem__, __delitem__, and arithmetic dunders.
squarefunction.py - demonstrating __getitem__, __call__, and __get__.
easysubsuper.py - demonstrating rich comparison dunders in a metaclass.

About

A collection of cursed projects I've created to demonstrate the sheer power of dunder methods.

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages