Ctypes error

Michele Petrazzo michele.petrazzo at TOGLIunipex.it
Thu Oct 7 12:21:42 EDT 2004


I'm using ctypes v 0.9.1 on linux for the first time.

Then I try to use create_unicode_buffer(), I receive this error:

File "/usr/lib/python2.3/site-packages/ctypes/__init__.py", line 74, in 
create_unicode_buffer
     buftype = c_wchar * init
NameError: global name 'c_wchar' is not defined

In __init__ file I see that at line:
208 if _os.name == "nt":
214  class c_wchar(_SimpleCData):

This class if only for "nt" ?

Thanks,
Michele Petrazzo



More information about the Python-list mailing list