]> granicus.if.org Git - python/commit
bpo-38083: Minor improvements in asdl_c.py and Python-ast.c. (GH-15824)
authorSerhiy Storchaka <storchaka@gmail.com>
Tue, 10 Sep 2019 10:02:30 +0000 (13:02 +0300)
committerT. Wouters <thomas@python.org>
Tue, 10 Sep 2019 10:02:30 +0000 (03:02 -0700)
commit43c9731334470573209464b7f67914d386457efc
treed2972685dcb2c0c2aacd8a91104c3ccfb8f6d7f0
parent359143c68659d165f52320d368667e0eff279dc5
bpo-38083: Minor improvements in asdl_c.py and Python-ast.c. (GH-15824)

* Use the const qualifier for constant C strings.
* Intern field and attribute names.
* Temporary incref a borrowed reference to a list item.
Parser/asdl_c.py
Python/Python-ast.c