Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit022ef91

Browse files
vstinnerGlyphack
authored andcommitted
pythongh-85283: _stat extension now uses the limited C API (python#110711)
pythongh-85283: _stat extension uses the limited C APIThe _stat C extension is now built with the limited C API.
1 parent6fc23bf commit022ef91

File tree

3 files changed

+9
-0
lines changed

3 files changed

+9
-0
lines changed

‎Doc/whatsnew/3.13.rst

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -928,6 +928,10 @@ Build Changes
928928
* Building CPython now requires a compiler with support for the C11 atomic
929929
library, GCC built-in atomic functions, or MSVC interlocked intrinsics.
930930

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

932936
C API Changes
933937
=============
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: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,9 @@
1111
*
1212
*/
1313

14+
// Need limited C API version 3.13 for PyModule_Add() on Windows
15+
#definePy_LIMITED_API 0x030d0000
16+
1417
#include"Python.h"
1518

1619
#ifdefHAVE_SYS_TYPES_H

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp