[issue29466] pickle does not serialize Exception __cause__ field

2022-01-06 Thread Irit Katriel
Irit Katriel added the comment: > Attributes __context__, __cause__ and __traceback__ are not pickled. The > traceback objects are even not pickleable. It's not guaranteed that the __cause__ and __context__ are picklable either. Should we try to pickle them, or should we document this and s

[issue29466] pickle does not serialize Exception __cause__ field

2021-06-27 Thread Irit Katriel
Irit Katriel added the comment: I get different output for Serhiy's first example now, but the same for the second: >>> try: import foo ... except Exception as ex: exc = ex ... >>> exc.name 'foo' >>> exc.__reduce__() (, ("No module named 'foo'",), {'name': 'foo'}) >>> exc = StopIteration() >

[issue29466] pickle does not serialize Exception __cause__ field

2021-06-27 Thread Irit Katriel
Irit Katriel added the comment: See also issue43460, issue32696, issue30005. -- ___ Python tracker ___ ___ Python-bugs-list mailing

[issue29466] pickle does not serialize Exception __cause__ field

2019-02-16 Thread Kumar Akshay
Kumar Akshay added the comment: Hey, can I work on this? -- nosy: +kakshay ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue29466] pickle does not serialize Exception __cause__ field

2019-02-13 Thread Tim Burgess
Change by Tim Burgess : -- nosy: +tjb900 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.

[issue29466] pickle does not serialize Exception __cause__ field

2017-02-08 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: True. Attributes __context__, __cause__ and __traceback__ are not pickled. The traceback objects are even not pickleable. What is worse, some other non-special attributes are lost during pickling. For example name and path attributes of ImportError. >>> try

[issue29466] pickle does not serialize Exception __cause__ field

2017-02-06 Thread Xiang Zhang
Changes by Xiang Zhang : -- nosy: +serhiy.storchaka ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mai

[issue29466] pickle does not serialize Exception __cause__ field

2017-02-06 Thread Mark Diekhans
Changes by Mark Diekhans : -- nosy: +alexandre.vassalotti ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https

[issue29466] pickle does not serialize Exception __cause__ field

2017-02-06 Thread Mark Diekhans
New submission from Mark Diekhans: python3 pickle does not serialize the __cause__ field, as shown by the attached demo program. -- components: Library (Lib) files: cause_pickle.py messages: 287163 nosy: diekhans priority: normal severity: normal status: open title: pickle does not seri