| Home | Trees | Index | Help |  | 
|---|
| Package epydoc :: Module imports | 
 | 
| Classes | |
|---|---|
| _DevNull | A "file-like" object that discards anything that is written and always reports end-of-file when read. | 
| Function Summary | |
|---|---|
| listofstring | If dirnamecontains a package, then return the filenames 
for the package, its modules, and all of its descendant packages and 
modules. | 
| listofmodule | Return the module with the given module name or filename. | 
| (string, string) | Break a module/package filename into a base directory and a module name. | 
| Helper function for find_modules. | |
| module | Return the module with the given name. | 
| Variable Summary | |
|---|---|
| _DevNull | _dev_null=<epydoc.imports._DevNull instance at 0x819a0... | 
| SRE_Pattern | _VALID_MODULE_NAME=^[a-zA-Z_]\w*(\.[a-zA-Z_]\w*)*$      | 
| Function Details | 
|---|
| find_modules(dirname)Ifdirnamecontains a package, then return the 
  filenames for the package, its modules, and all of its descendant 
  packages and modules. Ifdirnamedoes not contain a 
  package, then return an empty list.
 | 
| import_module(name_or_filename)
 | 
| _find_module_from_filename(filename)Break a module/package filename into a base directory and a module name._find_module_from_filenamechecks directories in the 
  filename to see if they contain"__init__.py"files; if they do, then it assumes that the module is part of a 
  package, and returns the full module name. For example, iffilenameis"/tmp/epydoc/imports.py", and the file"/tmp/epydoc/__init__.py"exists, then the base 
  directory will be"/tmp/"and the module name 
  will be"epydoc.imports".
 | 
| _find_modules(pkg)Helper function forfind_modules. | 
| _import_module(name)
 | 
| Variable Details | 
|---|
| _dev_null
 | 
| _VALID_MODULE_NAME
 | 
| Home | Trees | Index | Help |  | 
|---|
| Generated by Epydoc 2.1 on Sat Mar 20 17:46:16 2004 | http://epydoc.sf.net |