]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Document f4d7ad6c9d6e.
authorMartin v. Löwis <martin@v.loewis.de>
Tue, 15 May 2012 12:52:36 +0000 (14:52 +0200)
committerMartin v. Löwis <martin@v.loewis.de>
Tue, 15 May 2012 12:52:36 +0000 (14:52 +0200)
Misc/NEWS
Python/Python-ast.c

index 37b319d133349e505d6ef9216f46076a397b4566..f8ef70a7c69893040da6e3cdcd240fe4e8a15ae9 100644 (file)
--- a/Misc/NEWS
+++ b/Misc/NEWS
@@ -10,6 +10,8 @@ What's New in Python 3.3.0 Alpha 4?
 Core and Builtins
 -----------------
 
+- asdl_seq and asdl_int_seq are now Py_ssize_t sized.
+
 - Issue #14133 (PEP 415): Implement suppression of __context__ display with an
   attribute on BaseException. This replaces the original mechanism of PEP 409.
 
index 4ca269f9f542a9eecd5901f2519778e6e7cbd1c3..d9e13e28b0d97162729bd9d4b6ec0469491ca1c2 100644 (file)
@@ -636,7 +636,7 @@ static int add_attributes(PyTypeObject* type, char**attrs, int num_fields)
 
 static PyObject* ast2obj_list(asdl_seq *seq, PyObject* (*func)(void*))
 {
-    Py_ssize_t i, n = asdl_seq_LEN(seq);
+    int i, n = asdl_seq_LEN(seq);
     PyObject *result = PyList_New(n);
     PyObject *value;
     if (!result)
@@ -2857,7 +2857,7 @@ ast2obj_expr(void* _o)
                         goto failed;
                 Py_DECREF(value);
                 {
-                        Py_ssize_t i, n = asdl_seq_LEN(o->v.Compare.ops);
+                        int i, n = asdl_seq_LEN(o->v.Compare.ops);
                         value = PyList_New(n);
                         if (!value) goto failed;
                         for(i = 0; i < n; i++)