Skip to content

Commit 93ab31b

Browse files
Move to 3.15.
1 parent 439bc3c commit 93ab31b

File tree

6 files changed

+15
-17
lines changed

6 files changed

+15
-17
lines changed

Doc/data/stable_abi.dat

Lines changed: 4 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Doc/whatsnew/3.14.rst

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2622,11 +2622,6 @@ New features
26222622

26232623
(Contributed by Sergey B Kirpichev and Victor Stinner in :gh:`102471`.)
26242624

2625-
* Add :c:func:`PySys_GetAttr`, :c:func:`PySys_GetAttrString`,
2626-
:c:func:`PySys_GetOptionalAttr`, and :c:func:`PySys_GetOptionalAttrString`
2627-
functions as replacements for :c:func:`PySys_GetObject`.
2628-
(Contributed by Serhiy Storchaka in :gh:`108512`.)
2629-
26302625
* Add :c:func:`PyType_GetBaseByToken` and :c:data:`Py_tp_token` slot for easier
26312626
superclass identification, which attempts to resolve the `type checking issue
26322627
<https://peps.python.org/pep-0630/#type-checking>`__ mentioned in :pep:`630`

Doc/whatsnew/3.15.rst

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -196,7 +196,10 @@ C API changes
196196
New features
197197
------------
198198

199-
* TODO
199+
* Add :c:func:`PySys_GetAttr`, :c:func:`PySys_GetAttrString`,
200+
:c:func:`PySys_GetOptionalAttr`, and :c:func:`PySys_GetOptionalAttrString`
201+
functions as replacements for :c:func:`PySys_GetObject`.
202+
(Contributed by Serhiy Storchaka in :gh:`108512`.)
200203

201204
Porting to Python 3.15
202205
----------------------

Include/sysmodule.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
extern "C" {
55
#endif
66

7-
#if !defined(Py_LIMITED_API) || Py_LIMITED_API+0 >= 0x030e0000
7+
#if !defined(Py_LIMITED_API) || Py_LIMITED_API+0 >= 0x030f0000
88
PyAPI_FUNC(PyObject *) PySys_GetAttr(PyObject *);
99
PyAPI_FUNC(PyObject *) PySys_GetAttrString(const char *);
1010
PyAPI_FUNC(int) PySys_GetOptionalAttr(PyObject *, PyObject **);

Misc/stable_abi.toml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2576,10 +2576,10 @@
25762576
[function.Py_PACK_VERSION]
25772577
added = '3.14'
25782578
[function.PySys_GetAttr]
2579-
added = '3.14'
2579+
added = '3.15'
25802580
[function.PySys_GetAttrString]
2581-
added = '3.14'
2581+
added = '3.15'
25822582
[function.PySys_GetOptionalAttr]
2583-
added = '3.14'
2583+
added = '3.15'
25842584
[function.PySys_GetOptionalAttrString]
2585-
added = '3.14'
2585+
added = '3.15'

Modules/_testlimitedcapi/sys.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
#include "pyconfig.h" // Py_GIL_DISABLED
2-
// Need limited C API version 3.14 for PySys_GetAttr() etc
2+
// Need limited C API version 3.15 for PySys_GetAttr() etc
33
#if !defined(Py_GIL_DISABLED) && !defined(Py_LIMITED_API)
4-
# define Py_LIMITED_API 0x030e0000
4+
# define Py_LIMITED_API 0x030f0000
55
#endif
66
#include "parts.h"
77
#include "util.h"

0 commit comments

Comments
 (0)