Version 1.0b1 API Documentation generated by Endo 2006-08-14
DATA_RE = re.compile(('^_imp__(.*) in python%s\\.dll' mod py_ver), re.MULTILINE)
DEFAULT_NM = 'nm -Cs'
DEF_HEADER = ("""LIBRARY python%s.dll
;CODE PRELOAD MOVEABLE DISCARDABLE
;DATA PRELOAD SINGLE
EXPORTS
""" mod py_ver)
FUNC_RE = re.compile(('^(.*) in python%s\\.dll' mod py_ver), re.MULTILINE)
py_ver = ('%d%d' mod tuple(sys.version_info[:2))
Returns the output of nm_cmd via a pipe.
nm_output = getnam(nm_cmd = 'nm -Cs py_lib')
Outputs the final DEF file to a file defaulting to stdout.
output_def(dlist, flist, header, file = sys.stdout)
Parses the command-line arguments.
libfile, deffile = parse_cmd()
Returns a tuple of lists: dlist for the list of data symbols and flist for the list of function symbols.
dlist, flist = parse_nm(nm_output)
| Local name | Refers to |
|---|---|
| os | os |
| re | re |
| string | string |
| sys | sys |