tokenize
tokenize — Tokenizer for Python source
Source code: Lib/tokenize.py
The tokenize
module provides a lexical scanner for Python source code, implemented in Python. The scanner in this module returns comments as tokens as well, making it useful for implementing “pretty-printers,” including colorizers for on-screen displays.
To simplify token stream handling, all Operators and 登录查看完整内容