This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author lennartyseboodt
Recipients lennartyseboodt
Date 2011-12-03.12:18:57
SpamBayes Score 0.00010591168
Marked as misclassified No
Message-id <1322914738.52.0.754629082847.issue13523@psf.upfronthosting.co.za>
In-reply-to
Content
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.
History
Date User Action Args
2011-12-03 12:18:58lennartyseboodtsetrecipients: + lennartyseboodt
2011-12-03 12:18:58lennartyseboodtsetmessageid: <1322914738.52.0.754629082847.issue13523@psf.upfronthosting.co.za>
2011-12-03 12:18:57lennartyseboodtlinkissue13523 messages
2011-12-03 12:18:57lennartyseboodtcreate