This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author eric.smith
Recipients FunkyBob, docs@python, eric.smith
Date 2014-03-17.12:41:56
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1395060116.49.0.816567050264.issue20956@psf.upfronthosting.co.za>
In-reply-to
Content
The 2.x documentation says generate_tokens returns a 5-tuple, not a namedtuple:

http://docs.python.org/2/library/tokenize.html
"The generator produces 5-tuples with these members: ..."

The section you quote is talking about tokenize.tokenize, and I think that documentation should be fixed. Changing to namedtuple would be a new feature, which are not being added to 2.7.
History
Date User Action Args
2014-03-17 12:41:56eric.smithsetrecipients: + eric.smith, docs@python, FunkyBob
2014-03-17 12:41:56eric.smithsetmessageid: <1395060116.49.0.816567050264.issue20956@psf.upfronthosting.co.za>
2014-03-17 12:41:56eric.smithlinkissue20956 messages
2014-03-17 12:41:56eric.smithcreate