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 ethan.furman
Recipients ethan.furman, madphysicist
Date 2016-01-07.19:56:17
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1452196577.95.0.236827365345.issue26044@psf.upfronthosting.co.za>
In-reply-to
Content
Nice work with the debugging. but what you have proved is that Python is behaving exactly as designed [0].

While true that the current implementation does have the pitfall you have discovered, removing it is not worth the cost in complexity.

The proper "fix" is not to have __vars outside of a class.


[0] [https://docs.python.org/2/tutorial/classes.html#private-variables-and-class-local-references]
History
Date User Action Args
2016-01-07 19:56:17ethan.furmansetrecipients: + ethan.furman, madphysicist
2016-01-07 19:56:17ethan.furmansetmessageid: <1452196577.95.0.236827365345.issue26044@psf.upfronthosting.co.za>
2016-01-07 19:56:17ethan.furmanlinkissue26044 messages
2016-01-07 19:56:17ethan.furmancreate