double underscore attributes?

LocaWapp rdjdvd at inwind.it
Sat Dec 10 15:34:33 EST 2005


Hi Bob,
see this my example:

>>> class A:
...     def __add__(a,b):
...             print a,b
...
>>> a = A()
>>> b = A()
>>> a + b
<__main__.A instance at 0x80c5a74> <__main__.A instance at 0x80c6234>
>>>




More information about the Python-list mailing list