special operator =+

Peter Hansen peter at engcorp.com
Thu Dec 15 22:40:01 EST 2005


bearophileHUGS at lycos.com wrote:
> kenny Nguyen>Does anyone know the operator "=+"?
> 
> It isn't an operator, it's equivalent to = (assignment) only.

Though actually it would try to call the __pos__ method on the object 
prior to binding it to the name on the left side.  (Much as - would call 
the __neg__ method if it existed.)  :-)

-Peter




More information about the Python-list mailing list