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 iritkatriel
Recipients alexandre.vassalotti, brett.cannon, diekhans, eric.snow, iritkatriel, kakshay, ncoghlan, serhiy.storchaka, tjb900
Date 2021-06-27.21:41:18
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <>
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.__reduce__()
(<class 'ModuleNotFoundError'>, ("No module named 'foo'",), {'name': 'foo'})
>>> exc = StopIteration()
>>> exc.value = 42
>>> exc.__reduce__()
(<class 'StopIteration'>, ())
Date User Action Args
2021-06-27 21:41:18iritkatrielsetrecipients: + iritkatriel, brett.cannon, ncoghlan, diekhans, alexandre.vassalotti, eric.snow, serhiy.storchaka, tjb900, kakshay
2021-06-27 21:41:18iritkatrielsetmessageid: <>
2021-06-27 21:41:18iritkatriellinkissue29466 messages
2021-06-27 21:41:18iritkatrielcreate