Skip to content

Commit 612dc90

Browse files
committed
Clarify comments
1 parent 27728e9 commit 612dc90

1 file changed

Lines changed: 5 additions & 4 deletions

File tree

‎pythoncapi_compat.h‎

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -316,7 +316,8 @@ PyFrame_GetVarString(PyFrameObject *frame, const char *name)
316316
#endif
317317

318318

319-
// bpo-39947 added PyThreadState_GetInterpreter() to Python 3.9.0a5
319+
// Added to Python 3.9 and limited C API 3.9.
320+
// Added to PyPy 3.11.
320321
#if ((PY_VERSION_HEX < 0x030900A5 \
321322
|| (defined(PYPY_VERSION) && PY_VERSION_HEX < 0x030B0000)) \
322323
&& !defined(Py_LIMITED_API))
@@ -351,9 +352,9 @@ _PyThreadState_GetFrameBorrow(PyThreadState *tstate)
351352
#endif
352353

353354

354-
// bpo-39947 added PyInterpreterState_Get() to Python 3.9.0a5
355-
// PyPy added PyInterpreterState_Get() to PyPy3.12 v8.0.0
356-
// On Windows, PyInterpreterState_Get() was added to limited C API 3.10.
355+
// Added to Python 3.9 and limited C API 3.9. On Windows, it's not available
356+
// before stable ABI 3.10.
357+
// Added to PyPy3.12 v8.0.0.
357358
#if ((PY_VERSION_HEX < 0x030900A5 \
358359
|| (defined(PYPY_VERSION) && PY_VERSION_HEX < 0x030C0000)) \
359360
&& !defined(Py_LIMITED_API))

0 commit comments

Comments
 (0)