]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
bpo-25324: copy tok_name before changing it (#1608)
authorAlbert-Jan Nijburg <albertjan@trinket.io>
Wed, 31 May 2017 14:00:21 +0000 (15:00 +0100)
committerVictor Stinner <victor.stinner@gmail.com>
Wed, 31 May 2017 14:00:21 +0000 (16:00 +0200)
commitfc354f07855a9197e71f851ad930cbf5652f9160
tree5c7c6ad2a4de72993d916c321156572d4fa4635d
parent85aba238e49abd2d5a604102981d28a50f305443
bpo-25324: copy tok_name before changing it (#1608)

* add test to check if were modifying token

* copy list so import tokenize doesnt have side effects on token

* shorten line

* add tokenize tokens to token.h to get them to show up in token

* move ERRORTOKEN back to its previous location, and fix nitpick

* copy comments from token.h automatically

* fix whitespace and make more pythonic

* change to fix comments from @haypo

* update token.rst and Misc/NEWS

* change wording

* some more wording changes
Doc/library/token.rst
Include/token.h
Lib/test/test_tokenize.py
Lib/token.py
Lib/tokenize.py
Misc/NEWS
Parser/tokenizer.c