[Python-Dev] replacing 'global'

Greg Ewing greg at cosc.canterbury.ac.nz
Sun Oct 26 22:28:08 EST 2003


Alex Martelli <aleaxit at yahoo.com>:

> > Ideally, augmented assignments would also become "rebinding". However,
> > this may have compatibility problems.
> 
> Unfortunately yes.  It might have been better to define them that way in
> the first place, but changing them now is dubious.

I'm not so sure. You need an existing binding before an
augmented assignment will work, so I don't think there can
be any correct existing usages that would be broken by this.

Greg Ewing, Computer Science Dept, +--------------------------------------+
University of Canterbury,	   | A citizen of NewZealandCorp, a	  |
Christchurch, New Zealand	   | wholly-owned subsidiary of USA Inc.  |
greg at cosc.canterbury.ac.nz	   +--------------------------------------+



More information about the Python-Dev mailing list