Nick Coghlan <ncogh...@gmail.com> added the comment:

Sure, but what does that have to do with anything? tokenize isn't a general 
purpose tokenizer, it's specifically for tokenizing Python source code.

The *problem* is that it doesn't currently fully tokenize everything, but 
doesn't explicitly say that in the module documentation.

Hence my proposed two-fold fix: document the current behaviour explicitly and 
also add a separate "exact_type" attribute for easy access to the detailed 
tokenization without doing your own string comparisons.

----------

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue2134>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to