help function and operetors overloading

Chris Rebert clp2 at rebertia.com
Mon Feb 6 07:00:14 CET 2012


On Sun, Feb 5, 2012 at 9:48 PM, Mohsen Pahlevanzadeh
<mohsen at pahlevanzadeh.org> wrote:
> Dear all,
>
> You know python has many functions for operators overloading such as
> __add__, __radd__, __invert__, __eq__ and so on.
> How i see the complete list of them with help function?

I don't know if there's a help() entry for them. The docs have a full
list of those "special method names":
http://docs.python.org/reference/datamodel.html#special-method-names

Cheers,
Chris



More information about the Python-list mailing list