You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 6d5636c
Browse filesBrowse the repository at this point in the historyBrowse files
Copy file name to clipboardExpand all lines: Doc/howto/free-threading-extensions.rst
+6-5Lines changed: 6 additions & 5 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -203,7 +203,7 @@ Memory Allocation APIs
203
203
Python's memory management C API provides functions in three different
204
204
:ref:`allocation domains <allocator-domains>`: "raw", "mem", and "object".
205
205
For thread-safety, the free-threaded build requires that only Python objects
206
-
are allocated using the object domain, and that all Python object are
206
+
are allocated using the object domain, and that all Python objects are
207
207
allocated using that domain. This differs from the prior Python versions,
208
208
where this was only a best practice and not a hard requirement.
209
209
@@ -344,12 +344,12 @@ This means you cannot rely on nested critical sections to lock multiple objects
344
344
at once, as the inner critical section may suspend the outer ones. Instead, use
345
345
:c:macro:`Py_BEGIN_CRITICAL_SECTION2` to lock two objects simultaneously.
346
346
347
-
Note that the locks described above are only :c:type:`!PyMutex` based locks.
347
+
Note that the locks described above are only :c:type:`PyMutex` based locks.
348
348
The critical section implementation does not know about or affect other locking
349
349
mechanisms that might be in use, like POSIX mutexes. Also note that while
350
-
blocking on any :c:type:`!PyMutex` causes the critical sections to be
350
+
blocking on any :c:type:`PyMutex` causes the critical sections to be
351
351
suspended, only the mutexes that are part of the critical sections are
352
-
released. If :c:type:`!PyMutex` is used without a critical section, it will
352
+
released. If :c:type:`PyMutex` is used without a critical section, it will
353
353
not be released and therefore does not get the same deadlock avoidance.
354
354
355
355
Important Considerations
@@ -397,7 +397,8 @@ The wheels, shared libraries, and binaries are indicated by a ``t`` suffix.
397
397
* `pypa/manylinux <https://github.com/pypa/manylinux>`_ supports the
398
398
free-threaded build, with the ``t`` suffix, such as ``python3.13t``.
399
399
* `pypa/cibuildwheel <https://github.com/pypa/cibuildwheel>`_ supports the
400
-
free-threaded build if you set
400
+
free-threaded build on Python 3.13 and 3.14. On Python 3.14, free-threaded
401
+
wheels will be built by default. On Python 3.13, you will need to set
401
402
`CIBW_ENABLE to cpython-freethreading <https://cibuildwheel.pypa.io/en/stable/options/#enable>`_.
0 commit comments