mirror of
https://github.com/PyMySQL/mysqlclient.git
synced 2025-08-15 11:10:58 +08:00

PyArgs_ParseTupleAndKeywords() returns borrowed references for O format starting in 2.0.1, prior to that it returns new references, so it's necessary to test the Python version to determine whether or not we should Py_INCREF() it. If we always Py_INCREF() it, this produces a memory leak in versions prior to 2.0.1.
Languages
Python
64.1%
C
35.8%
Makefile
0.1%