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 serhiy.storchaka
Recipients nedbat, scoder, serhiy.storchaka, vstinner
Date 2018-07-11.15:24:15
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1531322655.61.0.56676864532.issue34068@psf.upfronthosting.co.za>
In-reply-to
Content
_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.
History
Date User Action Args
2018-07-11 15:24:15serhiy.storchakasetrecipients: + serhiy.storchaka, scoder, vstinner, nedbat
2018-07-11 15:24:15serhiy.storchakasetmessageid: <1531322655.61.0.56676864532.issue34068@psf.upfronthosting.co.za>
2018-07-11 15:24:15serhiy.storchakalinkissue34068 messages
2018-07-11 15:24:15serhiy.storchakacreate