Author serhiy.storchaka
Recipients eric.snow, serhiy.storchaka, vstinner
Date 2018-12-10.10:39:44
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <>
While "warnings" was a static variable in Python/sysmodule.c, it was guarantied that PySys_HasWarnOptions() never raises an exception. But since it became a value of the sys dict (see issue30860), it can have an arbitrary type, and PySys_HasWarnOptions() can raise an exception (while returning 0).

The proposed PR makes it never raising an exception again.
Date User Action Args
2018-12-10 10:39:45serhiy.storchakasetrecipients: + serhiy.storchaka, vstinner, eric.snow
2018-12-10 10:39:44serhiy.storchakasetmessageid: <>
2018-12-10 10:39:44serhiy.storchakalinkissue35452 messages
2018-12-10 10:39:44serhiy.storchakacreate