On Tue, Jul 26, 2016 at 6:31 PM, sth wrote:
>
> The restype is a ctypes Structure instance with a single __fields__ entry
> (coords), which
Watch the underscores with ctypes attributes. Your code spells it
correctly as "_fields_".
> is a Structure with two fields (len and data) which are the F
On Tuesday, 26 July 2016 19:10:46 UTC+1, eryk sun wrote:
> On Tue, Jul 26, 2016 at 12:06 PM, sth wrote:
> > I'm using ctypes to interface with a binary which returns a void pointer
> > (ctypes c_void_p) to a nested 64-bit float array:
>
> If this comes from a function result, are you certain th
On Tue, Jul 26, 2016 at 12:06 PM, wrote:
> I'm using ctypes to interface with a binary which returns a void pointer
> (ctypes c_void_p) to a nested 64-bit float array:
If this comes from a function result, are you certain that its restype
is ctypes.c_void_p? I commonly see typos here such as s
On Tuesday, 26 July 2016 16:36:33 UTC+1, Christian Gollwitzer wrote:
> Am 26.07.16 um 17:09 schrieb sth:
> > it's difficult to test a .dylib / .so using valgrind
>
> Why is it difficult? If you have a python script such that
>
> python mytests.py
>
> loads the .so and runs the tests, then
Am 26.07.16 um 17:09 schrieb sth:
it's difficult to test a .dylib / .so using valgrind
Why is it difficult? If you have a python script such that
python mytests.py
loads the .so and runs the tests, then
valgrind --tool=memcheck python mytests.py
should work. This should imme
On Tuesday, 26 July 2016 15:21:14 UTC+1, Peter Otten wrote:
>
> > I'm using ctypes to interface with a binary which returns a void pointer
> > (ctypes c_void_p) to a nested 64-bit float array:
> > [[1.0, 2.0], [3.0, 4.0], … ]
> > then return the pointer so it can be freed
> >
> > I'm using the f
ursch...@gmail.com wrote:
> I'm using ctypes to interface with a binary which returns a void pointer
> (ctypes c_void_p) to a nested 64-bit float array:
> [[1.0, 2.0], [3.0, 4.0], … ]
> then return the pointer so it can be freed
>
> I'm using the following code to de-reference it:
>
> # a 10-ele
I'm using ctypes to interface with a binary which returns a void pointer
(ctypes c_void_p) to a nested 64-bit float array:
[[1.0, 2.0], [3.0, 4.0], … ]
then return the pointer so it can be freed
I'm using the following code to de-reference it:
# a 10-element array
shape = (10, 2)
array_size = np