Python Zone is brought to you in partnership with:

Steve has posted 9 posts at DZone. You can read more from them at their website. View Full User Profile

Python’s Magic Methods

03.09.2012
| 4946 views |
  • submit to reddit

Here are some links to documentation of Python’s magic methods, aka special methods, aka “dunder” (double underscore) methods.

There are also a few other Python features that are sometimes characterized as “magic”.

I’m sure there are other useful Web pages about magic methods that I haven’t found. If you know of one (and feel like sharing it) please add it in the comments section below.

 

Published at DZone with permission of its author, Steve Ferg. (source)

(Note: Opinions expressed in this article and its replies are the opinions of their respective authors and not those of DZone, Inc.)