or pyc this time around--the only obvious way you can tell it' librarydir(helloc module attributes ['__doc__''__file__''__name__''__package__''message'hello __name__hello __file__ ('hello''hello dll'hello message hello hello __doc__ 'mod dochello message __doc__ 'func doca function object module object docstrings in code hello message(errors work too typeerrorargument must be sequence of length not like any module in pythonyou can also access the extension from script file the python file in example - for instanceimports and uses the extension module in example - example - pp \integrate\extend\hello\hellouse py "import and use extension library moduleimport hello print(hello message(' ')print(hello message('module hello __file__)for in range( )reply hello message(str( )print(replyrun this script as any other--when the script first imports the module hellopython automatically finds the module' dll object file in directory on the module search path and links it into the process dynamically all of this script' output represents strings returned from the function in the file hello /pp /integrate/extend/hellopython hellouse py helloc hellomodule /cygdrive/ /pp /integrate/extend/hello/hello dll hello hello hello see python' manuals for more details on the code in our moduleas well as tips for compilation and linkage of noteas an alternative to makefilesalso see the disthello py and disthello-alt py files in the examples package here' quick peek at the source code of the first of these python/ integration