[issue45175] No warning with '-W always' and cached import

2021-09-11 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: This warning is produced by the compiler when it compiles the source code. If it is already compiled, no compiler is involved. -- nosy: +serhiy.storchaka resolution: -> not a bug stage: -> resolved status: open -> closed

[issue45175] No warning with '-W always' and cached import

2021-09-11 Thread Jason Yundt
New submission from Jason Yundt : I have a script which always produces a warning when you run it. If I import always_warns from another script, that script will only produce a warning once. Steps to reproduce: $ python -W always always_warns.py /tmp/Bug reproduction/always_warns.py:1: