New submission from Nick Coghlan <ncogh...@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 <rep...@bugs.python.org> <https://bugs.python.org/issue32230> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com