[issue33007] Objects referencing private-mangled names do not roundtrip properly under pickling.

2020-07-15 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- nosy: +serhiy.storchaka versions: +Python 3.10 -Python 3.6, Python 3.7 ___ Python tracker ___ ___ Py

[issue33007] Objects referencing private-mangled names do not roundtrip properly under pickling.

2020-07-14 Thread Zackery Spytz
Change by Zackery Spytz : -- keywords: +patch nosy: +ZackerySpytz nosy_count: 3.0 -> 4.0 pull_requests: +20623 stage: -> patch review pull_request: https://github.com/python/cpython/pull/21480 ___ Python tracker

[issue33007] Objects referencing private-mangled names do not roundtrip properly under pickling.

2019-08-15 Thread Josh Rosenberg
Josh Rosenberg added the comment: This problem is specific to private methods AFAICT, since they're the only things which have an unmangled __name__ used to pickle them, but are stored as a mangled name. More details on cause and solution on issue #37852, which I closed as a duplicate of th

[issue33007] Objects referencing private-mangled names do not roundtrip properly under pickling.

2018-03-09 Thread Terry J. Reedy
Change by Terry J. Reedy : -- nosy: +alexandre.vassalotti ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http

[issue33007] Objects referencing private-mangled names do not roundtrip properly under pickling.

2018-03-05 Thread Antony Lee
New submission from Antony Lee : Consider the following example: import pickle class T: def __init__(self): self.attr = self.__foo def __foo(self): pass print(pickle.loads(pickle.dumps(T( This fails on 3.6 with `AttributeError: 'T' obje