c_string missing from ctypes?

Simon Brunning simon at brunningonline.net
Fri Feb 23 12:18:39 EST 2007


On 23 Feb 2007 09:03:21 -0800, Jacob Rael <jacob.rael at gmail.com> wrote:
> I was following along with this site:
>
> http://www.brunningonline.net/simon/blog/archives/000659.html

You don't want to be messing around with that old rubbish. I should
know - I wrote it.

Instead, take a look at <http://www.openqa.org/pywinauto/>.

> In [9]: import ctypes
> In [10]: dir(ctypes.c_string)
> ---------------------------------------------------------------------------
> <type 'exceptions.AttributeError'>        Traceback (most recent call
> last)
> <type 'exceptions.AttributeError'>: 'module' object has no attribute
> 'c_string'

I think that c_string has been replaced by c_buffer in recent versions
of ctypes.

-- 
Cheers,
Simon B
simon at brunningonline.net
http://www.brunningonline.net/simon/blog/



More information about the Python-list mailing list