[New-bugs-announce] [issue20956] tokenize module claims generate_tokens returns namedtuple, but it doesn't

Curtis Maloney report at bugs.python.org
Mon Mar 17 12:56:05 CET 2014


New submission from Curtis Maloney:

Although 3.x does yield a named-tuple, 2.x does not, despite the documentation:

    The exact type can be determined by checking the token string field on the named tuple returned from tokenize.tokenize() for the character sequence that identifies a specific operator token.

(I'd much rather this functionality be back-ported from 3, as it's quite simple)

----------
assignee: docs at python
components: Documentation
messages: 213853
nosy: FunkyBob, docs at python
priority: normal
severity: normal
status: open
title: tokenize module claims generate_tokens returns namedtuple, but it doesn't
versions: Python 2.7

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue20956>
_______________________________________


More information about the New-bugs-announce mailing list