.pyo's without .pyc's?
M.-A. Lemburg
mal at lemburg.com
Thu Jul 8 10:58:57 EDT 1999
Guido van Rossum wrote:
>
> > I've checked this and indeed you're right. exceptions.py is imported
> > prior to all other modules at a time where the switch from .pyc to
> > .pyo hasn't been done yet (this is done in _PyImport_Init(), yet
> > exceptions.py is imported by _PyBuiltin_Init_2()):
> [...]
> > Still, I think you're right in that the .pyc -> .pyo switch should
> > be done prior to importing *any* Python module, meaning that
> > _PyImport_Init() should be called prior to importing anything.
>
> Hmm, seems you're right. As Linus says, all bugs will eventually be
> found. Seems like this would be the fix, right? (_PyImport_Init() is
> pretty trivial so I don't doubt that it works.)
>
> Index: pythonrun.c
> ===================================================================
> [patch]
Yep, that's what I had in mind too ;-)
Cheers,
--
Marc-Andre Lemburg
______________________________________________________________________
Y2000: 176 days left
Business: http://www.lemburg.com/
Python Pages: http://www.lemburg.com/python/
More information about the Python-list
mailing list