module documentation

Undocumented

Function getnm Returns the output of nm_cmd via a pipe.
Function output_def Outputs the final DEF file to a file defaulting to stdout.
Function parse_cmd Parses the command-line arguments.
Function parse_nm Returns a tuple of lists: dlist for the list of data symbols and flist for the list of function symbols.
Constant DATA_RE Undocumented
Constant DEF_HEADER Undocumented
Constant DEFAULT_NM Undocumented
Constant FUNC_RE Undocumented
Variable __doc__ Undocumented
Variable __version__ Undocumented
Variable py_ver Undocumented
def getnm(nm_cmd=['nm', '-Cs', 'python%s.lib'%py_ver], shell=True): (source)

Returns the output of nm_cmd via a pipe.

nm_output = getnm(nm_cmd = 'nm -Cs py_lib')

def output_def(dlist, flist, header, file=sys.stdout): (source)

Outputs the final DEF file to a file defaulting to stdout.

output_def(dlist, flist, header, file = sys.stdout)

def parse_cmd(): (source)

Parses the command-line arguments.

libfile, deffile = parse_cmd()

def parse_nm(nm_output): (source)

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)

Undocumented

Value
re.compile('^_imp__(.*) in python%s\\.dll'%py_ver, re.MULTILINE)
DEF_HEADER = (source)

Undocumented

Value
'''LIBRARY         python%s.dll
;CODE           PRELOAD MOVEABLE DISCARDABLE
;DATA           PRELOAD SINGLE

EXPORTS
'''%py_ver
DEFAULT_NM: list[str] = (source)

Undocumented

Value
['nm', '-Cs']

Undocumented

Value
re.compile('^(.*) in python%s\\.dll'%py_ver, re.MULTILINE)

Undocumented

__version__: str = (source)

Undocumented

Undocumented