Message107584
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. |
|
Date |
User |
Action |
Args |
2010-06-11 20:59:09 | mark.dickinson | set | recipients:
+ mark.dickinson, serprex |
2010-06-11 20:59:04 | mark.dickinson | set | messageid: <1276289944.27.0.0906676597543.issue8977@psf.upfronthosting.co.za> |
2010-06-11 20:59:02 | mark.dickinson | link | issue8977 messages |
2010-06-11 20:59:02 | mark.dickinson | create | |
|