bug#38043: Acknowledgement (Incorrect Python byte-compiling for Python 3 and PyPy3)

2019-11-03 Thread Michał Górny
I'm attaching a reference patch that fixes the issue for me. However, I'm sorry but I don't have the time to work on adding a test for it. -- Best regards, Michał Górny From fc02398fbb5f1a5030a7205d22790b0288ec5a2c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micha=C5=82=20G=C3=B3rny?= Date: Sun,

bug#38043: Incorrect Python byte-compiling for Python 3 and PyPy3

2019-11-03 Thread Michał Górny
Hello, I've noticed that the logic in py-compile is built on assumptions from Python 2 and does not fit Python 3 well. Notably, there are two or three bugs here: 1. .opt-2 (-OO) level is not compiled for py3.5+. 2. .opt-1 (-O) and .opt-2 (-OO) are wrongly skipped for PyPy3. Firstly, the code