[issue24794] PyZipFile mixes compiled files from different python versions.

2015-08-05 Thread Amund Hov
New submission from Amund Hov: In my project I have a mixture of scripts using Python 2.7 and 3.4. Some of the scripts using python 3.4 are packaged into archives using PyZipFile. Through some combination I ended up with 2.7 compiled packages in my archive when packaging using python 3.4. In

[issue24794] PyZipFile mixes compiled files from different python versions.

2015-08-05 Thread R. David Murray
R. David Murray added the comment: Yes, that used to be a general problem with .pyc files before we introduced __pycache__. PyZipFile still supports the legacy mode by using whatever .pyc file is there, if there is one. Perhaps it is time to deprecate the legacy mode in 3.6? --