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?
--
no
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 co