Open GoogleCodeExporter opened 9 years ago
It could be argued that it's a fault of PyPy.
Is that just for Python 2.5-2.7?
Original comment by re...@mrabarnett.plus.com
on 27 Mar 2015 at 5:40
PyPy's support for the CPython API is known to be incomplete; being based on a
completely different model than CPython makes it difficult to implement the
full API. It tends to get better with each release, but the preferred way to
make use of C extensions under PyPy is via the CFFI interfaces---this allows
the PyPy JIT full optimization opportunities. Obviously that's a bigger change.
That said, I don't know why the PyLong_FromUnicode API is not implemented
(perhaps because it's such a simple wrapper?). There is this bug on the issue
tracker indicating that it's not supported:
https://bitbucket.org/pypy/pypy/issue/1428/
I did only build and test this under the Python2 version of PyPy (the current
version supports 2.7.9). PyPy does have a Python3 version that supports the
3.2.5 API, and it demonstrates the same problem. A similar patch would probably
work there, but since PyLong_FromUnicode is deprecated in 3.3 (and PyPy is
expecting to produce a 3.4 compatible version soon), I wasn't sure what would
be best.
Original comment by jason.ma...@nextthought.com
on 27 Mar 2015 at 5:54
My code uses PyLong_FromUnicode for Python 2.5-2.7 and Python 3.1-3.2 and
PyLong_FromUnicodeObject for Python 3.3+. Does PyPy support
PyLong_FromUnicodeObject for Python 3.3+?
Original comment by re...@mrabarnett.plus.com
on 27 Mar 2015 at 7:23
There isn't a PyPy release with support for 3.3+ yet, so I can't say
definitively what will be supported. Looking in their source repository at what
will become the 3.3+ compatible release (hopefully I'm in the right place),
though, I don't see any support for either of those APIs. At least not yet.
Original comment by jason.ma...@nextthought.com
on 27 Mar 2015 at 7:32
Original issue reported on code.google.com by
jason.ma...@nextthought.com
on 27 Mar 2015 at 3:45