Skip to content

Commit d22aca8

Browse files
committed
gh-85283: _stat extension uses the limited C API
The _stat C extension is now built with the limited C API.
1 parent f8be2e2 commit d22aca8

File tree

3 files changed

+7
-0
lines changed

3 files changed

+7
-0
lines changed

Doc/whatsnew/3.13.rst

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -821,6 +821,9 @@ Build Changes
821821
* SQLite 3.15.2 or newer is required to build the :mod:`sqlite3` extension module.
822822
(Contributed by Erlend Aasland in :gh:`105875`.)
823823

824+
* The ``_stat`` C extension is now built with the :ref:`limited C API
825+
<limited-c-api>`.
826+
(Contributed by Victor Stinner in :gh:`85283`.)
824827

825828
C API Changes
826829
=============
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
The ``_stat`` C extension is now built with the :ref:`limited C API
2+
<limited-c-api>`. Patch by Victor Stinner.

Modules/_stat.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,8 @@
1111
*
1212
*/
1313

14+
#define Py_LIMITED_API 0x030d0000
15+
1416
#include "Python.h"
1517

1618
#ifdef __cplusplus

0 commit comments

Comments
 (0)