[Python-3000] PEP3099 += 'Assignment will not become an operation'
Greg Ewing
greg.ewing at canterbury.ac.nz
Thu May 3 08:31:14 CEST 2007
Terry Reedy wrote:
> and hence '=' will not become an operator and hence '=' will not become
> overloadable.
Actually, '=' *is* overloadable in most cases, if
you can arrange for a suitably customised object
to be used as the namespace being assigned into.
About the only case you can't hook is assignment
to a local name in a function.
--
Greg
More information about the Python-3000
mailing list