[issue32230] -X dev doesn't set sys.warnoptions

STINNER Victor report at bugs.python.org
Wed Dec 6 07:02:56 EST 2017


STINNER Victor <victor.stinner at gmail.com> added the comment:

"-W options > PYTHONWARNINGS > BytesWarning > -X dev > default filters"

Hum, sorry, according to bpo-20361 (and bpo-32231 which has been marked as a duplicate of bpo-20361), -b and -bb options must have the priority over -W/PYTHONWARNINGS. So it gives something closer to:

-b and -bb > -W > PYTHONWARNINGS > ignore::BytesWarning > -X dev > default filters

where ignore::BytesWarning is only not added if -b or -bb is used.

----------

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue32230>
_______________________________________


More information about the Python-bugs-list mailing list