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

PyPy support #58

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open

PyPy support #58

wants to merge 2 commits into from

Conversation

jamadden
Copy link

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
Copy link

azhai commented Dec 27, 2016

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