Skip to content


Subversion checkout URL

You can clone with
Download ZIP
Guide to Python's magic methods
TeX Python CSS
Latest commit 31f16e6 @RafeKettler Merge pull request #48 from ashwch/patch-1
Simply return an reversed iterator from `__reversed__`.


A guide to Python's magic methods.

Written by Rafe Kettler in the year 2011.

Licensed under Creative Commons CC--NC-BY-SA (see Basically, noncommercial, requires attribution, must be reproduced with a similar license. 'Nuff said.

Can be seen at in relatively up to date form.

For forkers:

Edit magicmethods.markdown/magicmethods.tex, then run make docs. The build script requires the Python Markdown module, so you'll have to run pip install markdown if you don't already have it. Happy hacking!

Something went wrong with that request. Please try again.