]> granicus.if.org Git - python/commit
bpo-37500: Make sure dead code does not generate bytecode but also detect syntax...
authorPablo Galindo <Pablogsal@gmail.com>
Mon, 15 Jul 2019 09:15:01 +0000 (10:15 +0100)
committerMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Mon, 15 Jul 2019 09:15:01 +0000 (02:15 -0700)
commit18c5f9d44dde37c0fae5585a604c6027825252d2
tree5646a1af289769cc336aa9b4c8441dca80f43ff1
parentcd6e83b4810549c308ab2d7315dbab526e35ccf6
bpo-37500: Make sure dead code does not generate bytecode but also detect syntax errors (GH-14612)

https://bugs.python.org/issue37500

Add a new field to the compiler structure that allows to be configured
so no bytecode is emitted. In this way is possible to detect errors by
walking the nodes while preserving optimizations.

https://bugs.python.org/issue37500
Lib/test/test_compile.py
Lib/test/test_syntax.py
Lib/test/test_sys_settrace.py
Python/compile.c