[melbourne-pug] A Guide to Python's Magic Methods

Graeme Cross gcross at fastmail.fm
Sun Mar 18 08:27:27 CET 2012


Hi all.

I came across this resource today (via Hacker News) and thought it was
well worth spreading further.

It is a guide to the various magic methods in Python, such as __add__,
__init__ and __enter__. I have not seen a single comprehensive list and
explanation of them all before; it is a great read and also inspires
various bits of hackery :)

http://www.rafekettler.com/magicmethods.html

Enjoy,
Graeme


More information about the melbourne-pug mailing list