Message369655
Good to hear, Mariusz! And thanks for the report!
Also, as discussed above, I'm leaving this issue open (and retitling) until the following more general issue is fixed:
try:
raise RuntimeError
except Exception as exc:
print(f'handling: {exc!r}')
exc.__context__ = exc
raise ValueError # hangs
As I mentioned above, I believe this is because _PyErr_SetObject() only checks for cycles that involve the exception being raised. In this case, the cycle involves the exception one further down:
ValueError -> RuntimeError -> RuntimeError -> RuntimeError -> ... |
|
Date |
User |
Action |
Args |
2020-05-22 21:45:19 | chris.jerdonek | set | recipients:
+ chris.jerdonek, asvetlov, yselivanov, eamanu, miss-islington, BTaskaya, aeros, carltongibson, felixxm |
2020-05-22 21:45:19 | chris.jerdonek | set | messageid: <1590183919.06.0.80741791636.issue40696@roundup.psfhosted.org> |
2020-05-22 21:45:19 | chris.jerdonek | link | issue40696 messages |
2020-05-22 21:45:18 | chris.jerdonek | create | |
|