Skip to content

Commit 0d8974e

Browse files
committed
Document change to PyTuple_SET_ITEM
1 parent 03643cf commit 0d8974e

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed

Doc/whatsnew/3.13.rst

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1872,6 +1872,10 @@ Porting to Python 3.13
18721872
platforms, the ``HAVE_STDDEF_H`` macro is only defined on Windows.
18731873
(Contributed by Victor Stinner in :gh:`108765`.)
18741874

1875+
* The :c:func`PyTuple_SET_ITEM` inline function may not be passed ``NULL``.
1876+
This has always been the documented behavior, but was not enforced for
1877+
the value until now.
1878+
18751879
Deprecated
18761880
----------
18771881

Include/internal/pycore_list.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,7 @@ typedef struct {
5555
} _PyListIterObject;
5656

5757
PyAPI_FUNC(PyObject *)_PyList_FromArraySteal(PyObject *const *src, Py_ssize_t n);
58+
5859
/* Creates tuple from the list, leaving the list empty */
5960
PyObject *_PyList_AsTupleTakeItems(PyObject *);
6061

0 commit comments

Comments
 (0)