[issue23824] in-place addition of a shadowed class field

R. David Murray report at bugs.python.org
Wed Apr 1 15:40:30 CEST 2015


R. David Murray added the comment:

And I'm telling you that *this is how Python is designed*, and it is not going to change.  Class attributes are *special*, for a reason.

Please do not reopen this issue again.  If you wish to pursue this further, the language design discussion forum is the python-ideas mailing list.  Guido participates in that list; so, you can talk directly to the language designer about this if you wish.  You aren't going to get a very warm reception by saying it is broken, though, because there is lots and lots of Python code that makes use of how class attributes work.  And like I said they are special, so suggesting that the way other scopes work be changed is also pretty much a non-starter, I'm pretty sure.

----------
resolution:  -> not a bug
status: open -> closed

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue23824>
_______________________________________


More information about the Python-bugs-list mailing list