Learn how easy it is to sync an existing GitHub or Google Code repo to a SourceForge project! See Demo

Close

#215 Python 2.5

MySQLdb-1.2
closed
Andy Dustman
MySQLdb (285)
5
2012-09-19
2006-10-10
Marcus Grando
No

Python 2.5 change some things to improve support to 64
bit systems[1]. I run related[1] script in MySQLdb
1.2.2b1 and produce this output:

python ssizecheck.py _mysql.c

_mysql.c:45: '_PyTuple_Resize' uses Py_ssize_t for
input parameters
_mysql.c:51: '_PyTuple_Resize' uses Py_ssize_t for
input parameters
_mysql.c:107: 'PyTuple_New' uses Py_ssize_t for input
parameters
_mysql.c:243: 'PySequence_Size' uses Py_ssize_t for
return values (may need overflow check)
_mysql.c:251: 'PySequence_GetItem' uses Py_ssize_t for
input parameters
_mysql.c:268: 'PySequence_Size' uses Py_ssize_t for
return values (may need overflow check)
_mysql.c:276: 'PySequence_GetItem' uses Py_ssize_t for
input parameters
_mysql.c:376: 'PyTuple_New' uses Py_ssize_t for input
parameters
_mysql.c:381: 'PyTuple_New' uses Py_ssize_t for input
parameters
_mysql.c:395: 'PySequence_Size' uses Py_ssize_t for
return values (may need overflow check)
_mysql.c:398: 'PySequence_GetItem' uses Py_ssize_t for
input parameters
_mysql.c:572: 'PyType_GenericAlloc' uses Py_ssize_t for
input parameters
_mysql.c:964: 'PyString_FromStringAndSize' uses
Py_ssize_t for input parameters
_mysql.c:976: '_PyString_Resize' uses Py_ssize_t for
input parameters
_mysql.c:1003: 'PyString_FromStringAndSize' uses
Py_ssize_t for input parameters
_mysql.c:1016: '_PyString_Resize' uses Py_ssize_t for
input parameters
_mysql.c:1097: 'PyObject_Length' uses Py_ssize_t for
return values (may need overflow check)
_mysql.c:1098: 'PyTuple_New' uses Py_ssize_t for input
parameters
_mysql.c:1100: 'PySequence_GetItem' uses Py_ssize_t for
input parameters
_mysql.c:1132: WARNING: 'PyDict_Next' uses Py_ssize_t
for output parameters (must fix!)
_mysql.c:1161: 'PyTuple_New' uses Py_ssize_t for input
parameters
_mysql.c:1197: 'PyTuple_New' uses Py_ssize_t for input
parameters
_mysql.c:1223: 'PyString_FromStringAndSize' uses
Py_ssize_t for input parameters
_mysql.c:1244: 'PyTuple_New' uses Py_ssize_t for input
parameters
_mysql.c:1413: 'PyTuple_New' uses Py_ssize_t for input
parameters
_mysql.c:1420: 'PyTuple_New' uses Py_ssize_t for input
parameters
_mysql.c:1433: 'PyTuple_New' uses Py_ssize_t for input
parameters
_mysql.c:2558: 'inquiry' should be perhaps replaced
with 'lenfunc'
_mysql.c:2643: 'inquiry' should be perhaps replaced
with 'lenfunc'
_mysql.c:2794: 'PyType_GenericAlloc' uses Py_ssize_t
for input parameters
_mysql.c:2797: 'PyType_GenericAlloc' uses Py_ssize_t
for input parameters

[1]
http://www.python.org/dev/peps/pep-0353/

Discussion

  • Andy Dustman
    Andy Dustman
    2007-02-10

    Logged In: YES
    user_id=71372
    Originator: NO

    Reopen if you find this is still an issue, but it should be fixed in 1.2.2b3 or earlier.