# A Guide to Python's Magic Methods

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

- Host: [rafekettler.com](https://links.thingelstad.xyz/hosts/rafekettler.com/)
- Saved: March 19, 2012 (2012-03-19T18:06:50Z)
- Record: https://links.thingelstad.xyz/links/52d075f8541e/
- JSON: https://links.thingelstad.xyz/links/52d075f8541e.json

## From the page (probably an excerpt, not Jamie's words)

What are magic methods? They're everything in object-oriented Python. They're special methods that you can define to add "magic" to your classes. They're always surrounded by double underscores (e.g. __init__ or __lt__). They're also not as well documented as they need to be. All of the magic methods for Python appear in the same section in the Python docs, but they're scattered about and only loosely organized. There's hardly an example to be found in that section (and that may very well be by design, since they're all detailed in the language reference, along with boring syntax descriptions, etc.).

## Facts

- Kind: [Page](https://links.thingelstad.xyz/kinds/page/)

## Saved the same week

- [World's Most Ethical (WME) Companies](https://links.thingelstad.xyz/links/a79bf2039d19/) (ethisphere.com, March 19, 2012)
- [Smoothie Charts](https://links.thingelstad.xyz/links/0dca0be0681a/) (smoothiecharts.org, March 19, 2012)
- [Matasano Security](https://links.thingelstad.xyz/links/be3f50eb230e/) (matasano.com, March 19, 2012)
- [With Software, Small is the new Big | Wordnik ~ all the words](https://links.thingelstad.xyz/links/40876929bf8f/) (blog.wordnik.com, March 19, 2012)
- [The Midwest Mentality](https://links.thingelstad.xyz/links/b37fd47093e8/) (pando.com, March 19, 2012)

## Elsewhere

- Wayback Machine: https://web.archive.org/web/*/http://www.rafekettler.com/magicmethods.html
