[issue13523] Python does not warn in module .py files does not exist if there is still a .pyc file

Julian Berman report at bugs.python.org
Sun Dec 4 01:24:07 CET 2011


Julian Berman <Julian+Python.org at GrayVines.com> added the comment:

I know this is a feature, and on occasion as pointed out a useful one. But in some cases it can be a tad annoying as the OP probably considered it.

I had a recent example where a lingering .pyc made my test suite pass (and me nearly push broken code) despite the fact that I'd moved the file away and edited it, with bugs. Obviously I now remember to rebuild and remove all .pyc's before I commit, but it took a near miss to remind me to.

Would it be useful to have a command line flag that did something like this (perhaps that test runners could set by default) to prevent others from running into similar situations?

----------
nosy: +Julian

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue13523>
_______________________________________


More information about the Python-bugs-list mailing list