Skip to content

Commit 41829e8

Browse files
committed
Document f4d7ad6c9d6e.
1 parent cc10a37 commit 41829e8

2 files changed

Lines changed: 4 additions & 2 deletions

File tree

Misc/NEWS

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,8 @@ What's New in Python 3.3.0 Alpha 4?
1010
Core and Builtins
1111
-----------------
1212

13+
- asdl_seq and asdl_int_seq are now Py_ssize_t sized.
14+
1315
- Issue #14133 (PEP 415): Implement suppression of __context__ display with an
1416
attribute on BaseException. This replaces the original mechanism of PEP 409.
1517

Python/Python-ast.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -636,7 +636,7 @@ static int add_attributes(PyTypeObject* type, char**attrs, int num_fields)
636636

637637
static PyObject* ast2obj_list(asdl_seq *seq, PyObject* (*func)(void*))
638638
{
639-
Py_ssize_t i, n = asdl_seq_LEN(seq);
639+
int i, n = asdl_seq_LEN(seq);
640640
PyObject *result = PyList_New(n);
641641
PyObject *value;
642642
if (!result)
@@ -2857,7 +2857,7 @@ ast2obj_expr(void* _o)
28572857
goto failed;
28582858
Py_DECREF(value);
28592859
{
2860-
Py_ssize_t i, n = asdl_seq_LEN(o->v.Compare.ops);
2860+
int i, n = asdl_seq_LEN(o->v.Compare.ops);
28612861
value = PyList_New(n);
28622862
if (!value) goto failed;
28632863
for(i = 0; i < n; i++)

0 commit comments

Comments
 (0)