[issue43862] warnings: -W option and PYTHONWARNINGS now use the message as a regex
STINNER Victor
report at bugs.python.org
Fri Apr 16 09:56:00 EDT 2021
STINNER Victor <vstinner at python.org> added the comment:
> Sadly, the current -W option documentation is wrong :-( I started by writing PR 25439 to fix the documentation, before changing its behavior.
Hum, "wrong" may be too strong. I would say that it is at least misleading.
It starts with "file:line: category: message". I understood that it was the format the option, whereas it is not. Moreover, the full format is simply... not documented at all! Only the short -Waction format :-(
https://docs.python.org/dev/using/cmdline.html#cmdoption-W
----------
_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue43862>
_______________________________________
More information about the Python-bugs-list
mailing list