[Python-checkins] cpython: Document f4d7ad6c9d6e.

martin.v.loewis python-checkins at python.org
Tue May 15 14:52:45 CEST 2012


http://hg.python.org/cpython/rev/99ed87c8e24c
changeset:   76948:99ed87c8e24c
user:        Martin v. Löwis <martin at v.loewis.de>
date:        Tue May 15 14:52:36 2012 +0200
summary:
  Document f4d7ad6c9d6e.

files:
  Misc/NEWS           |  2 ++
  Python/Python-ast.c |  4 ++--
  2 files changed, 4 insertions(+), 2 deletions(-)


diff --git a/Misc/NEWS b/Misc/NEWS
--- a/Misc/NEWS
+++ b/Misc/NEWS
@@ -10,6 +10,8 @@
 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.
 
diff --git a/Python/Python-ast.c b/Python/Python-ast.c
--- a/Python/Python-ast.c
+++ b/Python/Python-ast.c
@@ -636,7 +636,7 @@
 
 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 @@
                         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++)

-- 
Repository URL: http://hg.python.org/cpython


More information about the Python-checkins mailing list