[issue32230] -X dev doesn't set sys.warnoptions
Nick Coghlan
report at bugs.python.org
Wed Dec 6 03:41:00 EST 2017
New submission from Nick Coghlan <ncoghlan at gmail.com>:
The `-X dev` option is currently integrated directly with the warnings module, rather than working indirectly through `sys.warnoptions`.
This means that any third party code that currently checks sys.warnoptions will need to be updated to check sys.flags.dev_mode as well.
Rather than doing that, I propose that we instead change the way dev mode works to *literally* be equivalent to `-Wdefault`, and remove the direct integration with the warnings machinery.
(PR for that coming shortly)
----------
assignee: ncoghlan
messages: 307709
nosy: ncoghlan, vstinner
priority: normal
severity: normal
stage: test needed
status: open
title: -X dev doesn't set sys.warnoptions
type: behavior
versions: Python 3.7
_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue32230>
_______________________________________
More information about the Python-bugs-list
mailing list