]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
[3.7] bpo-36440: include node names in ParserError messages, instead of numeric IDs...
authorPablo Galindo <Pablogsal@gmail.com>
Wed, 3 Apr 2019 18:34:59 +0000 (14:34 -0400)
committerGitHub <noreply@github.com>
Wed, 3 Apr 2019 18:34:59 +0000 (14:34 -0400)
commit513d142993bb8c13e6803727fa086e44eafc360f
tree5f05e77b87f6256d569415c6d6abbb958949de7d
parent9c08eeb30ca0e551323467b62ae40e08e30839b3
[3.7] bpo-36440: include node names in ParserError messages, instead of numeric IDs (GH-12565) (GH-12671)

The error messages in the parser module are referring to numeric IDs for the nodes. To improve readability, use the node names when reporting errors..
(cherry picked from commit cb0748d3939c31168ab5d3b80e3677494497d5e3)

Co-authored-by: tyomitch <tyomitch@gmail.com>
Lib/test/test_parser.py
Misc/NEWS.d/next/Core and Builtins/2019-03-25-13-45-19.bpo-36440.gkvzhi.rst [new file with mode: 0644]
Modules/parsermodule.c