Skip to content

Commit 3b04166

Browse files
committed
Doc
1 parent 3608d6c commit 3b04166

2 files changed

Lines changed: 5 additions & 3 deletions

File tree

‎docs/api.rst‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ Supported Python versions:
1010
* Python 3.6 - 3.16
1111
* PyPy 3.6 - 3.12
1212

13-
The limited C API is not supported on PyPy.
13+
The limited C API is only supported on CPython.
1414

1515
A C11 subset (without optional features) is required, like ``static inline``
1616
functions: see `PEP 7 <https://www.python.org/dev/peps/pep-0007/>`_.

‎tests/extension.c‎

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,10 @@
1212
#define _CONCAT(a, b) a ## b
1313
#define CONCAT(a, b) _CONCAT(a, b)
1414

15+
16+
// No method and no module exec method needed, most basic C extension
17+
18+
1519
// Use PySlot API on Python 3.15 and newer and on limited C API 3.15 and newer
1620
#if (PY_VERSION_HEX >= _Py_PACK_VERSION(3, 15) \
1721
&& (!defined(Py_LIMITED_API) || Py_LIMITED_API+0 >= _Py_PACK_VERSION(3, 15)))
@@ -50,8 +54,6 @@ INIT_FUNC(void)
5054

5155
#else
5256

53-
// No method and no module exec method needed, most basic C extension
54-
5557
static struct PyModuleDef module_def = {
5658
PyModuleDef_HEAD_INIT,
5759
STR(MODULE_NAME), // m_name

0 commit comments

Comments
 (0)