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 """ |
11 """ |
12 |
|
13 |
12 |
14 import sys |
13 import sys |
15 import re |
14 import re |
16 from functools import reduce |
15 from functools import reduce |
17 |
16 |