[wingide-users] Using import from *
Rob Thompson (Vero Software)
rob at veroint.com
Fri Mar 19 14:48:52 MDT 2010
Hi All,
This may be a daft question (I'm a newbie) but I am simply trying to do
this:
import from ctypes *
print windll.kernel32
When I run this as a .py file in WingIDE or using python.exe directly, I
get:
NameError: name 'windll' is not defined
File "d:\Users\Rob Thompson\ctypes.py", line 1, in <module>
from ctypes import *
File "d:\Users\Rob Thompson\ctypes.py", line 2, in <module>
print windll.kernel32
However, if I type the same in by hand into the interpreter I get:
>>> from ctypes import *
>>> print windll.kernel32
<WinDLL 'kernel32', handle 767b0000 at 1c3e230>
>>>
(It works!)
What am I doing wrong? Any help appreciated.
Thanks
Rob
-------------- next part --------------
An HTML attachment was scrubbed...
URL: /pipermail/wingide-users/attachments/20100319/03494e9c/attachment.html
More information about the wingide-users
mailing list