[pypy-issue] [issue1356] Casting a str into a ctype pointer fails

Armin Rigo tracker at bugs.pypy.org
Mon Jan 7 16:50:27 CET 2013


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

Uh, I had no clue you could do that.  I can think of no way to make it work in
PyPy, sorry.  How about you special-case that code for CPython versus PyPy?  We
could make it work on PyPy using a pile of slow hacks, but I guess slowness is
precisely what the code is trying to avoid.  On PyPy just use pure Python, e.g.
a for loop grabbing character pairs and doing some arithmetic on the ord's.

----------
nosy: +arigo

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


More information about the pypy-issue mailing list