[issue41650] .pyc file not running in cross python versions

2020-08-27 Thread Ammar Askar
Ammar Askar added the comment: .pyc files aren't meant to be portable, they contain raw bytecode and data specific to the version of Python they were compiled on. For example, search for "Changed in version 3.6" here and you'll see all the little changes to the bytecode format: https://docs.

[issue41650] .pyc file not running in cross python versions

2020-08-27 Thread Princy katlana
New submission from Princy katlana : When I tried to compile the python source code from python version 3.5 and run the .pyc file on python version 3.6 then it shows the following exception: RuntimeError: Bad magic number in .pyc file -- components: Build messages: 376003 nosy: princy