[issue43519] access python private variable

2021-03-16 Thread Steven D'Aprano
Steven D'Aprano added the comment: This is not a bug, it is working as intended. Python does not really support "private" attributes, except by convention. Names that begin with a single leading underscore are no different than any other name to the interpreter, but the reader is expected to

[issue43519] access python private variable

2021-03-16 Thread David Elmakias
New submission from David Elmakias : 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 '___'. Both are located on a different location in memory. I found that by assign