[Tutor] How do I use calldll and windll?

D-Man dsh8290@rit.edu
Thu, 29 Mar 2001 11:03:26 -0500


Try the following, but substitue "windll" for "cgi" (or "dynwin" I
forgot which one you were trying to use) :

>>> import cgi
>>> print cgi
<module 'cgi' from '/usr/local/lib/python2.0/cgi.pyc'>
>>> dir( cgi )
['FieldStorage', 'FormContent', 'FormContentDict',
'InterpFormContentDict', 'MiniFieldStorage', 'StringIO',
'SvFormContentDict', 'UserDict', '__builtins__', '__doc__',
'__file__', '__name__', '__version__', 'dolog', 'escape', 'initlog',
'log', 'logfile', 'logfp', 'maxlen', 'mimetools', 'nolog', 'os',
'parse', 'parse_header', 'parse_multipart', 'parse_qs', 'parse_qsl',
'print_arguments', 'print_directory', 'print_environ',
'print_environ_usage', 'print_exception', 'print_form', 'rfc822',
'string', 'sys', 'test', 'urllib']
>>>


Printing the module object will tell you where it got the module from.
Using dir() will tell you excatly what python thinks is in the module.


HTH,
-D


On Thu, Mar 29, 2001 at 09:20:15AM -0500, spi wrote:
| no other versions are there, currently they are located at
| D:\python20\lib\calldll\
| D:\python20\lib\dynwin\
| 
| This is a cut from windll.py
| 
| class module:
|  callable_function_class = callable_function
|  def __init__ (self, name, ext='.dll'):
| 
| ----------------------------------------------------
| 
| It's there but keeps saying that it's not there
| if it makes any diffrence i'm using activestates
| interactive compiler to test this