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 AluminumPirate
Recipients AluminumPirate
Date 2021-03-16.17:20:30
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1615915230.85.0.466298087541.issue43519@roundup.psfhosted.org>
In-reply-to
Content
It might be my lack of knowledge in python, however I find this behavior a bit strange.

By declaring a private variable in a class, python creates an attribute with the name '_<ClassName>__<PrivateVariableName>'.
Both are located on a different location in memory.

I found that by assigning data to the created variable with the exact name/notation '_<ClassName>__<PrivateVariableName>' I changed the private variable data.
History
Date User Action Args
2021-03-16 17:20:30AluminumPiratesetrecipients: + AluminumPirate
2021-03-16 17:20:30AluminumPiratesetmessageid: <1615915230.85.0.466298087541.issue43519@roundup.psfhosted.org>
2021-03-16 17:20:30AluminumPiratelinkissue43519 messages
2021-03-16 17:20:30AluminumPiratecreate