[issue8977] Globalize lonely augmented assignment
Mark Dickinson
report at bugs.python.org
Fri Jun 11 22:59:04 CEST 2010
Mark Dickinson <dickinsm at gmail.com> added the comment:
This seems evil to me, when you consider the effect of this patch on immutable types:
>>> A = 3
>>> def f():
... A += 5
...
>>> f()
>>> A
8
I find the possibility that a function can implicitly (i.e., without any 'global' declarations) mutate my global module constants... disturbing.
Anyway, such a fundamental change would need proper discussion; the right place for that is the python-ideas mailing list rather than the tracker:
http://mail.python.org/mailman/listinfo/python-ideas
Note also that there's a moratorium on core language changes in effect at the moment, so the earliest this could change is Python 3.3.
I'm going to close this issue for now; if the idea gets a good reception on python-ideas it can be reopened.
----------
nosy: +mark.dickinson
resolution: -> rejected
status: open -> closed
versions: +Python 3.3 -Python 3.1
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue8977>
_______________________________________
More information about the Python-bugs-list
mailing list