897 </dl> |
897 </dl> |
898 <div align="right"><a href="#top">Up</a></div> |
898 <div align="right"><a href="#top">Up</a></div> |
899 <hr /><hr /> |
899 <hr /><hr /> |
900 <a NAME="readModule" ID="readModule"></a> |
900 <a NAME="readModule" ID="readModule"></a> |
901 <h2>readModule</h2> |
901 <h2>readModule</h2> |
902 <b>readModule</b>(<i>module, path=[], inpackage=False, basename="", extensions=None, caching=True</i>) |
902 <b>readModule</b>(<i>module, path=None, inpackage=False, basename="", extensions=None, caching=True</i>) |
903 <p> |
903 <p> |
904 Function to read a module file and parse it. |
904 Function to read a module file and parse it. |
905 </p><p> |
905 </p><p> |
906 The module is searched in path and sys.path, read and parsed. |
906 The module is searched in path and sys.path, read and parsed. |
907 If the module was parsed before, the information is taken |
907 If the module was parsed before, the information is taken |
908 from a cache in order to speed up processing. |
908 from a cache in order to speed up processing. |
909 </p><dl> |
909 </p><dl> |
910 <dt><i>module</i></dt> |
910 <dt><i>module</i></dt> |
911 <dd> |
911 <dd> |
912 Name of the module to be parsed (string) |
912 name of the module to be parsed (string) |
913 </dd><dt><i>path</i></dt> |
913 </dd><dt><i>path</i></dt> |
914 <dd> |
914 <dd> |
915 Searchpath for the module (list of strings) |
915 search path for the module (list of strings) |
916 </dd><dt><i>inpackage</i></dt> |
916 </dd><dt><i>inpackage</i></dt> |
917 <dd> |
917 <dd> |
918 Flag indicating that module is inside a |
918 flag indicating that module is inside a |
919 package (boolean) |
919 package (boolean) |
920 </dd><dt><i>basename</i></dt> |
920 </dd><dt><i>basename</i></dt> |
921 <dd> |
921 <dd> |
922 a path basename. This basename is deleted from |
922 a path basename that is deleted from the filename of |
923 the filename of the module file to be read. (string) |
923 the module file to be read (string) |
924 </dd><dt><i>extensions</i></dt> |
924 </dd><dt><i>extensions</i></dt> |
925 <dd> |
925 <dd> |
926 list of extensions, which should be considered valid |
926 list of extensions, which should be considered valid |
927 source file extensions (list of strings) |
927 source file extensions (list of strings) |
928 </dd><dt><i>caching</i></dt> |
928 </dd><dt><i>caching</i></dt> |