[issue31845] Envvar PYTHONDONTWRITEBYTECODE is not respected

2017-10-23 Thread Sviatoslav Abakumov
New submission from Sviatoslav Abakumov <dust.harvest...@gmail.com>: Setting PYTHONDONTWRITEBYTECODE doesn't seem to have an effect in Python 3.7.0a2: $ python -V Python 3.7.0a2 $ env PYTHONDONTWRITEBYTECODE=1 python -c 'import sys; print(sys.dont_write_bytecode)'

[issue31845] PYTHONDONTWRITEBYTECODE and PYTHONOPTIMIZE have no effect

2017-10-23 Thread Sviatoslav Abakumov
Sviatoslav Abakumov <dust.harvest...@gmail.com> added the comment: Looks like PYTHONOPTIMIZE has no effect either: $ python -V Python 3.7.0a2 $ env PYTHONOPTIMIZE=1 python -c 'import sys; print(sys.flags.optimize)' 0 -- title: Envvar PYTHONDONTWRITEBY

[issue31845] PYTHONDONTWRITEBYTECODE and PYTHONOPTIMIZE have no effect

2017-10-23 Thread Sviatoslav Abakumov
Sviatoslav Abakumov <dust.harvest...@gmail.com> added the comment: It seems 1abcf67[1] is the first bad commit. [1]https://github.com/python/cpython/commit/1abcf6700b4da6207fe859de40c6c1bada6b4fec -- ___ Python tracker <rep...@bugs.p