Python dot-equals (syntax proposal)

Patrick Maupin pmaupin at gmail.com
Sat May 1 23:03:14 EDT 2010


On May 1, 9:03 pm, Chris Rebert <c... at rebertia.com> wrote:
> In both cases, __iOP__ operator methods are being used, not vanilla
> __OP__ methods, so neither of your examples are relevant to Mr.
> Chase's point.

Well, Tim's main assertion was: "The += family of operators really do
rebind the symbol, not modify the object."

So, using __iadd__ to disprove this blanket assertion is certainly
relevant.

Regards,
Pat





More information about the Python-list mailing list