Skip to content

Commit 4e7a005

Browse files
committed
Merge pull request realpython#442 from cgoodale/master
Add link to Python Magic Methods Guide
2 parents 49c4f2f + 6c03f21 commit 4e7a005

1 file changed

Lines changed: 10 additions & 0 deletions

File tree

docs/intro/learning.rst

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -154,6 +154,16 @@ development, version control, and optimization/profiling.
154154
`Expert Python Programming <http://www.packtpub.com/expert-python-programming/book>`_
155155

156156

157+
A Guide to Python's Magic Methods
158+
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
159+
160+
This is a collection of blog posts by Rafe Kettler which explain 'magic methods'
161+
in Python. Magic methods are surrounded by double underscores (i.e. __init__) and
162+
can make classes and objects behave in different and magical ways.
163+
164+
`A Guide to Python's Magic Methods <http://www.rafekettler.com/magicmethods.html>`_
165+
166+
157167
For Engineers and Scientists
158168
----------------------------
159169

0 commit comments

Comments
 (0)