Resize ctypes array

2009-05-28 Thread Scott Sibley
I'd like to resize a ctypes array. As you can see, ctypes.resize doesn't work like it could. I can write a function to resize an array, but I wanted to know some other solutions to this. Maybe I'm missing some ctypes trick or maybe I simply used resize wrong. The name c_long_Array_0 seems to tell m

Re: Resize ctypes array

2009-05-28 Thread Scott Sibley
I found an answer to this over on Stackoverflow. http://stackoverflow.com/questions/919369/resize-ctypes-array On Thu, May 28, 2009 at 1:25 AM, Scott Sibley wrote: > I'd like to resize a ctypes array. As you can see, ctypes.resize doesn't > work like it could. I can write a fu

Ctypes to wrap libusb-1.0

2009-07-06 Thread Scott Sibley
I have been having issues trying to wrap libusb-1.0 with ctypes. Actually, there's not much of an issue if I keep everything synchronous, but I need this to be asynchronous and that is where my problem arises. Please refer to the following link on Stackoverflow for a full overview of the issue. h