Ned Deily added the comment:

As Peter notes, .pyc and .pyo files are in general not compatible across Python 
versions.  PEP 3147 was implemented in Python 3.2 to help avoid the problem you 
are seeing by storing .pyc/.pyo files with version-specific filenames.  For 
Python 2, you need to be careful to recompile (see "compileall") or delete 
.pyc/.pyo files when changing interpreter versions. 

http://docs.python.org/3/whatsnew/3.2.html#pep-3147-pyc-repository-directories
http://docs.python.org/2/library/compileall.html

----------
nosy: +ned.deily
resolution:  -> invalid
stage:  -> committed/rejected
status: open -> closed

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue20794>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to