[New-bugs-announce] [issue13523] Python does not warn in module .py files does not exist if there is still a .pyc file
report at bugs.python.org
Sat Dec 3 13:18:58 CET 2011
New submission from lennartyseboodt <lennart.yseboodt at philips.com>:
Python does not warn/error when importing a module where the module.py file no longer exists, but there is still a .pyc file present.
It also does not warn when the imported file.py is a symlink pointing nowhere. As long as there is still a .pyc file with the correct name it does not warn/error.
Attached is a minimal set to demonstrate. Execute test.py.
title: Python does not warn in module .py files does not exist if there is still a .pyc file
versions: Python 2.7
Added file: http://bugs.python.org/file23837/pythonbug.tar.gz
Python tracker <report at bugs.python.org>
More information about the New-bugs-announce