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@python
components: Documentation
messages: 213853
nosy: FunkyBob, docs@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 <rep...@bugs.python.org>
<http://bugs.python.org/issue20956>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to