[Python-Dev] __file__
Greg Ewing
greg.ewing at canterbury.ac.nz
Mon Mar 1 22:53:35 CET 2010
Ron Adam wrote:
> What if ... a bytecode-only mode is triggered by "__main__" loading from
> a bytecode file, otherwise the .py files are needed and are checked to
> make sure the bytecode files are current.
That would preclude having a bytecode-only library that
could be used by a sourceful program.
Such a situation might arise if you have an application
with a scripting interface that is used by importing
stuff from the application's internal libraries.
--
Greg
More information about the Python-Dev
mailing list