[issue13267] Add an option to disable importing orphaned bytecode files

Nick Coghlan report at bugs.python.org
Wed Oct 26 10:18:27 CEST 2011

Nick Coghlan <ncoghlan at gmail.com> added the comment:

This feature is unnecessary now that PEP 3147 has been adopted. The way it works in 3.2+ is that orphaned bytecode files inside __pycache__ are always ignored, while bytecode files that live directly in the source directories are always imported.

This handles both use cases nicely:
- the implicitly created cache files are ignored if their source file has been deleted
- bytecode only distribution is still supported by explicitly installing bytecode files instead of source files

resolution:  -> out of date
stage:  -> committed/rejected
status: open -> closed

Python tracker <report at bugs.python.org>

More information about the Python-bugs-list mailing list