Ctypes error

Michele Petrazzo michele.petrazzo at TOGLIunipex.it
Thu Oct 7 18:21:42 CEST 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 
     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" ?

Michele Petrazzo

More information about the Python-list mailing list