[pypy-issue] [issue1233] str() types can't be used with ctypes's py_object()

Armin Rigo tracker at bugs.pypy.org
Mon Sep 3 19:38:08 CEST 2012


Armin Rigo <armin.rigo at gmail.com> added the comment:

I suppose "py_object" can be supported with enough hacks.  You're free to try,
too: start with writing py_object.__init__(x) that stores 'x' in a global list
and returns the index.  It may look obscure, but that's exactly how we would
implement it on pypy.  More precisely, we would add some (pure Python) logic to
lib_pypy/_ctypes/*.py.

________________________________________
PyPy bug tracker <tracker at bugs.pypy.org>
<https://bugs.pypy.org/issue1233>
________________________________________


More information about the pypy-issue mailing list