Guide to Python's magic methods
Pull request Compare This branch is 91 commits behind RafeKettler:master.
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
README
magicmarkdown.py
magicmethods.html
magicmethods.mkd
magicmethods.py
style.css

README

A guide to Python's magic methods. Written by Rafe Kettler in the year 2011.

Licensed under Creative Commons CC--NC-BY-SA (see http://creativecommons.org/licenses/by-nc-sa/3.0/). Basically, noncommercial, requires attribution, must be reproduced with a similar license. 'Nuff said.

Can be seen at http://www.rafekettler.com/magicmethods.html in relatively up to date form.

For forkers: edit magicmethods.mkd, run `python magicmarkdown.py`, and then copy-pasta output (output will be in markedup.html) into magicmethods.html (start pasting at line `<h2><a id="intro">Introduction</a></h2>`, should be line 32 or thereabouts). The magicmarkdown script requires markdown, just issue `pip install markdown` and you'll have it.