This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author mark.dickinson
Recipients mark.dickinson, serprex
Date 2010-06-11.20:59:02
SpamBayes Score 0.00013939645
Marked as misclassified No
Message-id <1276289944.27.0.0906676597543.issue8977@psf.upfronthosting.co.za>
In-reply-to
Content
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.
History
Date User Action Args
2010-06-11 20:59:09mark.dickinsonsetrecipients: + mark.dickinson, serprex
2010-06-11 20:59:04mark.dickinsonsetmessageid: <1276289944.27.0.0906676597543.issue8977@psf.upfronthosting.co.za>
2010-06-11 20:59:02mark.dickinsonlinkissue8977 messages
2010-06-11 20:59:02mark.dickinsoncreate