SIGN IN SIGN UP
python / cpython UNCLAIMED

The Python programming language

0 0 0 Python

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
A
Albert-Jan Nijburg committed
fc354f07855a9197e71f851ad930cbf5652f9160
Parent: 85aba23
Committed by Victor Stinner <victor.stinner@gmail.com> on 5/31/2017, 2:00:21 PM