Message396603
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__()
(<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:18 | iritkatriel | set | recipients:
+ iritkatriel, brett.cannon, ncoghlan, diekhans, alexandre.vassalotti, eric.snow, serhiy.storchaka, tjb900, kakshay |
2021-06-27 21:41:18 | iritkatriel | set | messageid: <1624830078.79.0.514720084635.issue29466@roundup.psfhosted.org> |
2021-06-27 21:41:18 | iritkatriel | link | issue29466 messages |
2021-06-27 21:41:18 | iritkatriel | create | |
|