[Python-checkins] r42710 - in python/trunk: Include/modsupport.h Python/getargs.c

martin.v.loewis python-checkins at python.org
Wed Mar 1 05:06:15 CET 2006


Author: martin.v.loewis
Date: Wed Mar  1 05:06:10 2006
New Revision: 42710

Modified:
   python/trunk/Include/modsupport.h
   python/trunk/Python/getargs.c
Log:
Use Py_ssize_t for PyArg_UnpackTuple arguments.


Modified: python/trunk/Include/modsupport.h
==============================================================================
--- python/trunk/Include/modsupport.h	(original)
+++ python/trunk/Include/modsupport.h	Wed Mar  1 05:06:10 2006
@@ -25,7 +25,7 @@
 PyAPI_FUNC(int) PyArg_ParseTuple(PyObject *, const char *, ...);
 PyAPI_FUNC(int) PyArg_ParseTupleAndKeywords(PyObject *, PyObject *,
                                                   const char *, char **, ...);
-PyAPI_FUNC(int) PyArg_UnpackTuple(PyObject *, const char *, int, int, ...);
+PyAPI_FUNC(int) PyArg_UnpackTuple(PyObject *, const char *, Py_ssize_t, Py_ssize_t, ...);
 PyAPI_FUNC(PyObject *) Py_BuildValue(const char *, ...);
 PyAPI_FUNC(int) _PyArg_NoKeywords(const char *funcname, PyObject *kw);
 

Modified: python/trunk/Python/getargs.c
==============================================================================
--- python/trunk/Python/getargs.c	(original)
+++ python/trunk/Python/getargs.c	Wed Mar  1 05:06:10 2006
@@ -1662,9 +1662,9 @@
 
 
 int
-PyArg_UnpackTuple(PyObject *args, const char *name, int min, int max, ...)
+PyArg_UnpackTuple(PyObject *args, const char *name, Py_ssize_t min, Py_ssize_t max, ...)
 {
-	int i, l;
+	Py_ssize_t i, l;
 	PyObject **o;
 	va_list vargs;
 


More information about the Python-checkins mailing list