Message213854
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. |
|
Date |
User |
Action |
Args |
2014-03-17 12:41:56 | eric.smith | set | recipients:
+ eric.smith, docs@python, FunkyBob |
2014-03-17 12:41:56 | eric.smith | set | messageid: <1395060116.49.0.816567050264.issue20956@psf.upfronthosting.co.za> |
2014-03-17 12:41:56 | eric.smith | link | issue20956 messages |
2014-03-17 12:41:56 | eric.smith | create | |
|