New submission from Serhiy Storchaka <storchaka+cpyt...@gmail.com>:

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.

----------
components: Interpreter Core
messages: 331488
nosy: eric.snow, serhiy.storchaka, vstinner
priority: normal
severity: normal
status: open
title: Make PySys_HasWarnOptions() never raising an exception
type: behavior
versions: Python 3.7, Python 3.8

_______________________________________
Python tracker <rep...@bugs.python.org>
<https://bugs.python.org/issue35452>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to