ultramysql icon indicating copy to clipboard operation
ultramysql copied to clipboard

PyPy support

Open jamadden opened this issue 9 years ago • 1 comments

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).

jamadden avatar Mar 29 '15 16:03 jamadden

Test ok with PyPy 5.6.0 (python 2.7.12)

azhai avatar Dec 27 '16 06:12 azhai