Storing a C pointer in a Python class instance
lallous at lgwm.org
Wed Sep 30 13:52:38 CEST 2009
Finally, I used Falcolas suggestion and took into consideration
"lallous" <lallous at lgwm.org> wrote in message news:h9sgcn$ivo$1 at aioe.org...
> From my C extension module I want to store a C pointer in a given
> The only way I figure how to do it is to use Py_BuildValues and store the
> poiner casted to Py_ssize_t, thus:
> Py_BuildValues("n", (Py_ssize_t)my_ptr)
> Can it be done differently?
More information about the Python-list