[pypy-commit] [Git][pypy/pypy][branch/py3.9-peg-parser] 7 commits: unify all those places

Carl Friedrich Bolz-Tereick (@cfbolz) foss at heptapod.net
Fri Nov 12 12:31:12 EST 2021



Carl Friedrich Bolz-Tereick pushed to branch branch/py3.9-peg-parser at PyPy / pypy


Commits:
690acdb3 by Carl Friedrich Bolz-Tereick at 2021-11-11T19:12:51+01:00
unify all those places

--HG--
branch : py3.9-peg-parser

- - - - -
55b0e649 by Carl Friedrich Bolz-Tereick at 2021-11-11T19:13:12+01:00
add end_lineno and end_col_offset to the ast types that have them as default value None

--HG--
branch : py3.9-peg-parser

- - - - -
e1415c99 by Carl Friedrich Bolz-Tereick at 2021-11-11T20:55:12+01:00
- make sure all the things stored into the w_objects when converting asts are
  not None
- support optional string fields on asts correctly
- make several ast tests convert the asts to objects to see whether that
  crashes

--HG--
branch : py3.9-peg-parser

- - - - -
b134ef82 by Carl Friedrich Bolz-Tereick at 2021-11-12T14:29:39+01:00
- add docstrings to ast nodes
- deal properly with optional fields of ast classes: add them as None to the
  type, and only convert them if they are given

--HG--
branch : py3.9-peg-parser

- - - - -
349839cd by Carl Friedrich Bolz-Tereick at 2021-11-12T16:14:48+01:00
test and fix: got the precedence of the ternary operator wrong

--HG--
branch : py3.9-peg-parser

- - - - -
3c47c782 by Carl Friedrich Bolz-Tereick at 2021-11-12T18:30:23+01:00
this is now no longer necessary

--HG--
branch : py3.9-peg-parser

- - - - -
a4672506 by Carl Friedrich Bolz-Tereick at 2021-11-12T18:30:51+01:00
properly pass and compare python version

--HG--
branch : py3.9-peg-parser

- - - - -


11 changed files:

- pypy/interpreter/astcompiler/ast.py
- pypy/interpreter/astcompiler/codegen.py
- pypy/interpreter/astcompiler/test/test_ast.py
- pypy/interpreter/astcompiler/test/test_astbuilder.py
- pypy/interpreter/astcompiler/test/test_compiler.py
- pypy/interpreter/astcompiler/test/test_validate.py
- pypy/interpreter/astcompiler/tools/asdl.py
- pypy/interpreter/astcompiler/tools/asdl_py.py
- pypy/interpreter/pyparser/baserpypeg.py
- pypy/module/_ast/moduledef.py
- pypy/module/_ast/test/test_ast.py


View it on Heptapod: https://foss.heptapod.net/pypy/pypy/-/compare/aedb4d1f33d5ab9874fa0985beb3c5c461fa6cce...a46725060776e34d99fadc09fec80cefd59c1040

-- 
View it on Heptapod: https://foss.heptapod.net/pypy/pypy/-/compare/aedb4d1f33d5ab9874fa0985beb3c5c461fa6cce...a46725060776e34d99fadc09fec80cefd59c1040
You're receiving this email because of your account on foss.heptapod.net.


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mail.python.org/pipermail/pypy-commit/attachments/20211112/145cc631/attachment.html>


More information about the pypy-commit mailing list