Anthony Sottile <asott...@umich.edu> added the comment:

I would really like to be able to trigger all warnings consistently and 
statically without executing the code.

This is useful (for instance) for this simple script which validates the ast: 
https://github.com/pre-commit/pre-commit-hooks/blob/master/pre_commit_hooks/check_ast.py

when run with PYTHONWARNINGS=error I get nice error reports for things such as 
invalid escape sequence, but I do not get them for string-call which I would 
like to

This does seem like a bug and prematurely closed, I'm a bit disappointed in the 
current resolution

----------

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

Reply via email to