6 """ |
6 """ |
7 Parse a Python file and retrieve classes, functions/methods and attributes. |
7 Parse a Python file and retrieve classes, functions/methods and attributes. |
8 |
8 |
9 Parse enough of a Python file to recognize class and method definitions and |
9 Parse enough of a Python file to recognize class and method definitions and |
10 to find out the superclasses of a class as well as its attributes. |
10 to find out the superclasses of a class as well as its attributes. |
11 |
|
12 This is module is based on pyclbr found in the Python 2.2.2 distribution. |
|
13 """ |
11 """ |
14 |
12 |
15 |
13 |
16 import sys |
14 import sys |
17 import re |
15 import re |