module documentation

Undocumented

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
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.
DATA_RE =

Undocumented

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

Undocumented

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

EXPORTS
'''%py_ver
DEFAULT_NM: list[str] =

Undocumented

Value
['nm', '-Cs']
FUNC_RE =

Undocumented

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

Undocumented

__version__: str =

Undocumented

py_ver =

Undocumented

def getnm(nm_cmd=['nm', '-Cs', 'python%s.lib'%py_ver], shell=True):

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):

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

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

def parse_cmd():

Parses the command-line arguments.

libfile, deffile = parse_cmd()

def parse_nm(nm_output):

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)