Message321481
_PyType_Lookup doesn't set an exception. But if an exception was raised inside, it will be cleared, and this will clear an exception if it was raised before _PyType_Lookup. assert() is needed for guaranteeing that no exception will be lost.
I'm +1 for saving/restoring (or rather chaining) the exception. |
|
Date |
User |
Action |
Args |
2018-07-11 15:24:15 | serhiy.storchaka | set | recipients:
+ serhiy.storchaka, scoder, vstinner, nedbat |
2018-07-11 15:24:15 | serhiy.storchaka | set | messageid: <1531322655.61.0.56676864532.issue34068@psf.upfronthosting.co.za> |
2018-07-11 15:24:15 | serhiy.storchaka | link | issue34068 messages |
2018-07-11 15:24:15 | serhiy.storchaka | create | |
|