ultramysql
ultramysql copied to clipboard
PyPy support
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).
Test ok with PyPy 5.6.0 (python 2.7.12)