]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
gh-82312: Further improvement of error messages for generating AST nodes (GH-150912)
authorSerhiy Storchaka <storchaka@gmail.com>
Mon, 29 Jun 2026 22:03:33 +0000 (01:03 +0300)
committerGitHub <noreply@github.com>
Mon, 29 Jun 2026 22:03:33 +0000 (01:03 +0300)
commitbc3fa17c30cc95664a663c47ab9938fdf9cb1429
tree4b5000d468bf149c17fc5c36f54c0e9a6a13c170
parentedcc07d985c41523ee8386d8c8880e10d0990db9
gh-82312: Further improvement of error messages for generating AST nodes (GH-150912)

This is a follow up of GH-17715.

* Use %T instead of _PyType_Name().
* Add the wrong type name we got for identifier and string.
Lib/test/test_ast/test_ast.py
Parser/asdl_c.py
Python/Python-ast.c