This is now supported natively. Cf. http://docs.python.org/lib/ctypes-
pointers.html#ctypes-pointers

Assigning to an integer index changes the pointed to value:

>>> print i
c_long(99)
>>> pi[0] = 22
>>> print i
c_long(22)
>>>

It is also possible to use indexes different from 0, but you must know
what you're doing, just as in C: You can access or change arbitrary
memory locations. Generally you only use this feature if you receive a
pointer from a C function, and you know that the pointer actually points
to an array instead of a single item.

** Changed in: ctypes (Ubuntu)
       Status: New => Won't Fix

-- 
cast() no longer allows array types as the target type
https://bugs.launchpad.net/bugs/46118
You received this bug notification because you are a member of Ubuntu
Bugs, which is a direct subscriber.

-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to