66 <dd> |
66 <dd> |
67 filename or modulename to search for (string) |
67 filename or modulename to search for (string) |
68 </dd><dt><i>path</i></dt> |
68 </dd><dt><i>path</i></dt> |
69 <dd> |
69 <dd> |
70 search path (list of strings) |
70 search path (list of strings) |
|
71 </dd><dt><i>isPyFile</i></dt> |
|
72 <dd> |
|
73 flag indicating a Python file (boolean) |
71 </dd> |
74 </dd> |
72 </dl><dl> |
75 </dl><dl> |
73 <dt>Returns:</dt> |
76 <dt>Returns:</dt> |
74 <dd> |
77 <dd> |
75 tuple of the open file, pathname and description. Description |
78 tuple of the open file, pathname and description. Description |
85 <hr /><hr /> |
88 <hr /><hr /> |
86 <a NAME="readmodule" ID="readmodule"></a> |
89 <a NAME="readmodule" ID="readmodule"></a> |
87 <h2>readmodule</h2> |
90 <h2>readmodule</h2> |
88 <b>readmodule</b>(<i>module, path=[], isPyFile=False</i>) |
91 <b>readmodule</b>(<i>module, path=[], isPyFile=False</i>) |
89 <p> |
92 <p> |
90 Read a source file and return a dictionary of classes, functions, modules, etc. . |
93 Read a source file and return a dictionary of classes, functions, modules, |
|
94 etc. . |
91 </p><p> |
95 </p><p> |
92 The real work of parsing the source file is delegated to the individual file |
96 The real work of parsing the source file is delegated to the individual |
93 parsers. |
97 file parsers. |
94 </p><dl> |
98 </p><dl> |
95 <dt><i>module</i></dt> |
99 <dt><i>module</i></dt> |
96 <dd> |
100 <dd> |
97 name of the source file (string) |
101 name of the source file (string) |
98 </dd><dt><i>path</i></dt> |
102 </dd><dt><i>path</i></dt> |
99 <dd> |
103 <dd> |
100 path the file should be searched in (list of strings) |
104 path the file should be searched in (list of strings) |
|
105 </dd><dt><i>isPyFile</i></dt> |
|
106 <dd> |
|
107 flag indicating a Python file (boolean) |
101 </dd> |
108 </dd> |
102 </dl><dl> |
109 </dl><dl> |
103 <dt>Returns:</dt> |
110 <dt>Returns:</dt> |
104 <dd> |
111 <dd> |
105 the resulting dictionary |
112 the resulting dictionary |