[issue28076] Variable annotations should be mangled for private names

2016-09-11 Thread Roundup Robot
Roundup Robot added the comment: New changeset 1c2a4f29e1ab by Guido van Rossum in branch 'default': Issue #28076: Variable annotations should be mangled for private names. https://hg.python.org/cpython/rev/1c2a4f29e1ab -- nosy: +python-dev ___ Python

[issue28076] Variable annotations should be mangled for private names

2016-09-11 Thread Guido van Rossum
Guido van Rossum added the comment: Thanks! I think you have a PEP update already waiting for me? -- resolution: -> fixed status: open -> closed ___ Python tracker ___ _

[issue28076] Variable annotations should be mangled for private names

2016-09-11 Thread Ivan Levkivskyi
New submission from Ivan Levkivskyi: Variable annotations for private names are stored in __annotations__ without name mangling. This is inconsistent with how function annotations behave: class C: def meth(__x: int): ... assert C.meth.__annotations__ == {'_C__x': int} The attached patch fi