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 <1544438384.96.0.788709270274.issue35452@psf.upfronthosting.co.za>
In-reply-to
Content
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.
History
Date User Action Args
2018-12-10 10:39:45serhiy.storchakasetrecipients: + serhiy.storchaka, vstinner, eric.snow
2018-12-10 10:39:44serhiy.storchakasetmessageid: <1544438384.96.0.788709270274.issue35452@psf.upfronthosting.co.za>
2018-12-10 10:39:44serhiy.storchakalinkissue35452 messages
2018-12-10 10:39:44serhiy.storchakacreate