Could someone please give me a complete list of those special methods that you can put in classes, e.g. a couple are __len__
and __add__
, but what are the rest? Thanks.
views:
257answers:
5
+12
A:
Please take a look at the special method names section in the Python language reference.
Martin Geisler
2009-09-13 21:05:41
Python's official documentation is excellent.
Fragsworth
2009-09-13 21:14:39