gl Multiple versions of python

Steve Holden steve at holdenweb.com
Tue Oct 28 21:04:58 EDT 2008


Glenn Linderman wrote:
> When using multiple versions of Python co-installed on the same system,
> what happens with local .pyc files?  If the .py is loaded with a
> different version of Python, is the .pyc rebuilt (even if the .py hasn't
> changed)?
> 
> Or must one manually delete the .pyc files?
> 
They are automatically rebuilt if they are from a different version of
Python. This is why it isn't a good idea to share library modules
between different versions.

regards
 Steve
-- 
Steve Holden        +1 571 484 6266   +1 800 494 3119
Holden Web LLC              http://www.holdenweb.com/




More information about the Python-list mailing list