18.5 Parsing Python

(One could argue that these should all be documented together with the parser module.)

tokenize.py - regular expression that recognizes Python tokens; also contains helper code for colorizing Python source code.

pyclbr.py - Parse a Python file and retrieve classes and methods



guido@python.org