Skip to content

Commit

Permalink
gh-85283: _stat extension uses the limited C API
Browse files Browse the repository at this point in the history
The _stat C extension is now built with the limited C API.
  • Loading branch information
vstinner committed Aug 29, 2023
1 parent f8be2e2 commit d22aca8
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 0 deletions.
3 changes: 3 additions & 0 deletions Doc/whatsnew/3.13.rst
Original file line number Diff line number Diff line change
Expand Up @@ -821,6 +821,9 @@ Build Changes
* SQLite 3.15.2 or newer is required to build the :mod:`sqlite3` extension module.
(Contributed by Erlend Aasland in :gh:`105875`.)

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

C API Changes
=============
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
The ``_stat`` C extension is now built with the :ref:`limited C API
<limited-c-api>`. Patch by Victor Stinner.
2 changes: 2 additions & 0 deletions Modules/_stat.c
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@
*
*/

#define Py_LIMITED_API 0x030d0000

#include "Python.h"

#ifdef __cplusplus
Expand Down

0 comments on commit d22aca8

Please sign in to comment.