Message399092
Like Dennis' patch, mine changes PyErr_SetObject. The difference is that Dennis' patch gets rid of the cycle while mine leaves it as it is, just avoids hanging on it.
So in this case:
when trying to set the exception A on top of
B -> C -> D -> E -> C -> ...,
The result would be simply
A -> B -> C -> D -> E -> C -> ...,
As I said in msg391637, a pre-existing cycle is due to a bug somewhere, and I don't think PyErr_SetObject can or should try to fix that bug. Nonsense in, nonsense out. If we change it we probably just make it more nonsensical. |
|
Date |
User |
Action |
Args |
2021-08-06 14:47:21 | iritkatriel | set | recipients:
+ iritkatriel, georg.brandl, terry.reedy, ncoghlan, chris.jerdonek, Yury.Selivanov, python-dev, serhiy.storchaka, yselivanov, oconnor663, Rotem Yaari, larsonreever, Dennis Sweeney |
2021-08-06 14:47:21 | iritkatriel | set | messageid: <1628261241.04.0.337589756174.issue25782@roundup.psfhosted.org> |
2021-08-06 14:47:21 | iritkatriel | link | issue25782 messages |
2021-08-06 14:47:20 | iritkatriel | create | |
|