Overloadable Assignment PEP

Daniel Dittmar daniel.dittmar at sap.com
Thu Apr 3 10:23:26 EST 2003


Drew Moore wrote:
> some say in how this takes place. I'm at a loss to explain why
> the "most trivial case of augmented assignment" was denied this power.

Performance comes to mind. Assignment is a frequent statement and having to
search for an __assign__ method will slow things down a lot.

And if an object has an __assign__ method, how do you perform a real rebind?
Do we add a 'becomes' operator (similar to the ==/is operators)?

Daniel







More information about the Python-list mailing list