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

lennartyseboodt 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.

----------
files: pythonbug.tar.gz
messages: 148791
nosy: lennartyseboodt
priority: normal
severity: normal
status: open
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>
<http://bugs.python.org/issue13523>
_______________________________________


More information about the New-bugs-announce mailing list