P
Patrick Stinson
when passing an python integer value to a C function
ie.
x = 1
mymod.myfunc(x)
is it possible to change the value of the python object "x" as happens in c
when you pass a pointer to an int? Is there something fundamentally wrong
with this idea, as this does not happen in pure python anyway?
Better yet, I'm wrapping a C api where some of the values are returned by
passing values by reference. Is the only way to simulate this to return a
list with the returned values?
Cheers
ie.
x = 1
mymod.myfunc(x)
is it possible to change the value of the python object "x" as happens in c
when you pass a pointer to an int? Is there something fundamentally wrong
with this idea, as this does not happen in pure python anyway?
Better yet, I'm wrapping a C api where some of the values are returned by
passing values by reference. Is the only way to simulate this to return a
list with the returned values?
Cheers