Use correct ref for atomic

This commit is contained in:
Lysandros Nikolaou 2025-12-18 18:02:06 +02:00
parent 688b25a2b0
commit 11e8072369
No known key found for this signature in database
GPG key ID: 43E92D11D08F5F29

View file

@ -1467,7 +1467,7 @@ application).
threads and will not corrupt the list.
The following operations return new objects and appear
:term:`atomic <atomic operations>` to other threads:
:term:`atomic <atomic operation>` to other threads:
.. code-block::
:class: good
@ -1477,7 +1477,7 @@ application).
lst.copy() # returns a shallow copy of the list
Methods that only operate on a single elements with no shifting required are
:term:`atomic <atomic operations>`:
:term:`atomic <atomic operation>`:
.. code-block::
:class: good
@ -1485,7 +1485,7 @@ application).
lst.append(x) # append to the end of the list, no shifting required
lst.pop() # pop element from the end of the list, no shifting required
The :meth:`~list.clear` method is also :term:`atomic <atomic operations>`.
The :meth:`~list.clear` method is also :term:`atomic <atomic operation>`.
Other threads cannot observe elements being removed.
The :meth:`~list.sort` method is not :term:`atomic <atomic operation>`.