Am 30.06.2011 12:07 schrieb Daniel Franke:

Here, of course, the functions PyObjectFromRawPointer(void*) and void*
PyRawPointerFromPyObject(PyObject*) are missing. Is there anything
like this in the Python C-API? If not, how could it be implemented?

You could implement it as a separate class which has one (read-only or even hidden, seen from Python) member, the said pointer.

In its __repr__, it could nevertheless reveal some internal infos.


HTH,

Thomas
--
http://mail.python.org/mailman/listinfo/python-list

Reply via email to