Carl Friedrich Bolz-Tereick pushed to branch branch/py3.8 at PyPy / pypy
Commits: 3bdfa0f4 by Carl Friedrich Bolz-Tereick at 2021-08-13T13:46:15+02:00 attempt 1: try to find errors in dead code it works, but we put the constants used in the dead code into code.co_consts, which is not great and hard to fix --HG-- branch : py3.8-errors-in-dead-code - - - - - cfdacff9 by Carl Friedrich Bolz-Tereick at 2021-08-13T13:53:22+02:00 using an explicit flag seems to work better! --HG-- branch : py3.8-errors-in-dead-code - - - - - f2c8746c by Carl Friedrich Bolz-Tereick at 2021-08-13T14:02:54+02:00 another test, for async for in dead code --HG-- branch : py3.8-errors-in-dead-code - - - - - 3a4cd1ec by Carl Friedrich Bolz-Tereick at 2021-08-13T14:55:00+02:00 do this check on the token level to catch parens --HG-- branch : py3.8-errors-in-dead-code - - - - - b1716f99 by Carl Friedrich Bolz-Tereick at 2021-08-23T13:05:50+02:00 merge py3.8 --HG-- branch : py3.8-errors-in-dead-code - - - - - 2a186d80 by Carl Friedrich Bolz-Tereick at 2021-08-23T13:15:42+02:00 merge py3.8 (helps to pull before merging :-/) --HG-- branch : py3.8-errors-in-dead-code - - - - - 3f67d79b by Carl Friedrich Bolz-Tereick at 2021-08-27T13:27:46+02:00 do and/or folding during codegen in order to produce the correct errors in both paths of the or/and. Also add the first test for this optimization :-( --HG-- branch : py3.8-errors-in-dead-code - - - - - 52ae3b4e by Carl Friedrich Bolz-Tereick at 2021-08-27T18:59:42+02:00 move the test, submitted to cpython too: https://github.com/python/cpython/pull/28002 --HG-- branch : py3.8-errors-in-dead-code - - - - - 8ebaaa7d by Carl Friedrich Bolz-Tereick at 2021-08-27T19:03:05+02:00 fix lack of error when True/False/None etc are used as a keyword argument --HG-- branch : py3.8-errors-in-dead-code - - - - - 6a8974ac by Carl Friedrich Bolz-Tereick at 2021-08-29T13:24:17+02:00 document branch --HG-- branch : py3.8-errors-in-dead-code - - - - - ebf3a058 by Carl Friedrich Bolz-Tereick at 2021-08-29T13:25:40+02:00 merge py3.8-errors-in-dead-code: produce SyntaxErrors, even if they happen in "dead" code, eg in a "if 0". Fixes issue #3358. --HG-- branch : py3.8 - - - - - 10 changed files: - lib-python/3/test/test_file.py - lib-python/3/test/test_syntax.py - pypy/doc/whatsnew-pypy3-head.rst - pypy/interpreter/astcompiler/assemble.py - pypy/interpreter/astcompiler/astbuilder.py - pypy/interpreter/astcompiler/codegen.py - pypy/interpreter/astcompiler/optimize.py - pypy/interpreter/astcompiler/test/test_astbuilder.py - pypy/interpreter/astcompiler/test/test_compiler.py - pypy/interpreter/test/test_compiler.py View it on Heptapod: https://foss.heptapod.net/pypy/pypy/-/compare/de3e96e6a53e84b6b34a57564ffc42605e1cf9a6...ebf3a058e2c2fa35b513150bf478a53e9dc579dc -- View it on Heptapod: https://foss.heptapod.net/pypy/pypy/-/compare/de3e96e6a53e84b6b34a57564ffc42605e1cf9a6...ebf3a058e2c2fa35b513150bf478a53e9dc579dc You're receiving this email because of your account on foss.heptapod.net.
_______________________________________________ pypy-commit mailing list pypy-commit@python.org https://mail.python.org/mailman/listinfo/pypy-commit