[issue31726] Missing token.COMMENT

2021-04-26 Thread Irit Katriel
Irit Katriel added the comment: Fixed in 3.7 and too late for earlier versions. -- nosy: +iritkatriel resolution: -> out of date stage: -> resolved status: open -> closed ___ Python tracker

[issue31726] Missing token.COMMENT

2017-10-09 Thread Franck Pommereau
Franck Pommereau added the comment: Thanks for the explanation! Fixing is up to you, Python developers. But since there's a simple workaround, maybe it doesn't worth the effort. -- ___ Python tracker

[issue31726] Missing token.COMMENT

2017-10-08 Thread R. David Murray
R. David Murray added the comment: 3.4 and 3.5 are in security maintenance mode only, and this is not a security bug. This was fixed in master (3.7) as a result of issue 25324. The decision there was made to not backport it because no one had complained about the

[issue31726] Missing token.COMMENT

2017-10-08 Thread Franck Pommereau
Franck Pommereau added the comment: I've just launched ipython3 (installed with pip): $ ipython3 Python 3.4.3 (default, Nov 17 2016, 01:08:31) Type 'copyright', 'credits' or 'license' for more information IPython 6.1.0 -- An enhanced Interactive Python. Type '?'

[issue31726] Missing token.COMMENT

2017-10-08 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: COMMENT and NL are added by the tokenize module. BACKQUOTE already is set, but to 25 instead of 56. ATEQUAL shouldn't be occurred in Python earlier than 3.5. How did you get your results? -- nosy: +serhiy.storchaka

[issue31726] Missing token.COMMENT

2017-10-08 Thread Franck Pommereau
Franck Pommereau added the comment: I have the problem still exists in 3.4.3 at least: Python 3.4.3 (default, Nov 17 2016, 01:08:31) [GCC 4.8.4] on linux Type "help", "copyright", "credits" or "license" for more information. >>> import token >>> token.COMMENT

[issue31726] Missing token.COMMENT

2017-10-08 Thread R. David Murray
R. David Murray added the comment: This is fixed in python3. Do you have a use case for 2.7 or are you just noticing? -- nosy: +r.david.murray versions: -Python 3.4 ___ Python tracker

[issue31726] Missing token.COMMENT

2017-10-08 Thread Franck Pommereau
Franck Pommereau added the comment: Actually, comparing with the content of tok_name, all the following constants are missing: COMMENT = 54 NL = 55 BACKQUOTE = 56 ATEQUAL = 57 -- ___ Python tracker

[issue31726] Missing token.COMMENT

2017-10-08 Thread Franck Pommereau
New submission from Franck Pommereau : Module token does not have constant COMMENT. But tokenize produces it and it appears in tok_name. -- components: Library (Lib) messages: 303901 nosy: fpom priority: normal severity: normal status: open title: Missing