Skip to content
This repository was archived by the owner on Feb 22, 2020. It is now read-only.

PyPy support - #58

Open
jamadden wants to merge 2 commits into
esnme:masterfrom
NextThought:master
Open

PyPy support#58
jamadden wants to merge 2 commits into
esnme:masterfrom
NextThought:master

Conversation

@jamadden

Copy link
Copy Markdown

Replaces PyObject_Malloc/Free with their PyMem counterparts; PyPy does not support the PyObject variants. Arguably, based on the documents for PyMalloc the PyMem variants are a better fit for this use case anyway (PyObject_ being intended for "small" allocations).

Disables the use of CP1250 under PyPy because it lacks the PyUnicode_Encode function.

There are no new tests failures. (testConnectWithWrongDB fails with a 1044 error for me and not 1049 with both the original code under CPython and this code under PyPy).

Replaces PyObject_Malloc/Free with their PyMem counterparts; PyPy does
not support the PyObject variants. Arguably, based on
https://docs.python.org/2.3/whatsnew/section-pymalloc.html the PyMem
variants are a better fit for this use case anyway (PyObject_ being
intended for "small" allocations).

Disables the use of CP1250 under PyPy because it lacks the
PyUnicode_Encode function.

There are no new tests failures. (testConnectWithWrongDB fails with a
1044 error for me and not 1049 with both the original code under
CPython and this code under PyPy).
@azhai

azhai commented Dec 27, 2016

Copy link
Copy Markdown

Test ok with PyPy 5.6.0 (python 2.7.12)

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants