@@ -243,16 +243,16 @@ msgstr ""
243243#: ../../builtins/threadsafety.rst:168
244244msgid ""
245245"The :meth:`~list.remove` method may allow concurrent modifications since "
246- "element comparison may execute arbitrary Python code "
247- "(via :meth:`~object. __eq__`)."
246+ "element comparison may execute arbitrary Python code (via :meth:`~object. "
247+ "__eq__`)."
248248msgstr ""
249249
250250#: ../../builtins/threadsafety.rst:172
251251msgid ""
252252":meth:`~list.extend` is safe to call from multiple threads. However, its "
253- "guarantees depend on the iterable passed to it. If it is a :class:`list`, "
254- "a : class:`tuple`, a :class:`set`, a :class:`frozenset`, a :class:`dict` or "
255- "a : ref:`dictionary view object <dict-views>` (but not their subclasses), the "
253+ "guarantees depend on the iterable passed to it. If it is a :class:`list`, a : "
254+ "class:`tuple`, a :class:`set`, a :class:`frozenset`, a :class:`dict` or a : "
255+ "ref:`dictionary view object <dict-views>` (but not their subclasses), the "
256256"``extend`` operation is safe from concurrent modifications to the iterable. "
257257"Otherwise, an iterator is created which can be concurrently modified by "
258258"another thread. The same applies to inplace concatenation of a list with "
@@ -299,16 +299,15 @@ msgstr ""
299299#: ../../builtins/threadsafety.rst:211
300300msgid ""
301301"Creating a dictionary with the :class:`dict` constructor is atomic when the "
302- "argument to it is a :class:`dict` or a :class:`tuple`. When using "
303- "the :meth:`dict.fromkeys` method, dictionary creation is atomic when the "
304- "argument is a :class:`dict`, :class:`tuple`, :class:`set` "
305- "or :class:`frozenset`."
302+ "argument to it is a :class:`dict` or a :class:`tuple`. When using the :meth:"
303+ "`dict.fromkeys` method, dictionary creation is atomic when the argument is "
304+ "a :class:`dict`, :class:`tuple`, :class:`set` or :class:`frozenset`."
306305msgstr ""
307306
308307#: ../../builtins/threadsafety.rst:217
309308msgid ""
310- "The following operations and functions are :term:`lock-free` "
311- "and :term: `atomic <atomic operation>`."
309+ "The following operations and functions are :term:`lock-free` and :term: "
310+ "`atomic <atomic operation>`."
312311msgstr ""
313312
314313#: ../../builtins/threadsafety.rst:220
@@ -342,10 +341,9 @@ msgstr ""
342341msgid ""
343342"These operations may compare keys using :meth:`~object.__eq__`, which can "
344343"execute arbitrary Python code. During such comparisons, the dictionary may "
345- "be modified by another thread. For built-in types "
346- "like :class:`str`, :class:`int`, and :class:`float`, that "
347- "implement :meth:`~object.__eq__` in C, the underlying lock is not released "
348- "during comparisons and this is not a concern."
344+ "be modified by another thread. For built-in types like :class:`str`, :class:"
345+ "`int`, and :class:`float`, that implement :meth:`~object.__eq__` in C, the "
346+ "underlying lock is not released during comparisons and this is not a concern."
349347msgstr ""
350348
351349#: ../../builtins/threadsafety.rst:249
@@ -501,9 +499,9 @@ msgstr ""
501499msgid ""
502500"This operation may compare elements using :meth:`~object.__eq__`, which can "
503501"execute arbitrary Python code. During such comparisons, the set may be "
504- "modified by another thread. For built-in types "
505- "like :class:`str`, :class:` int`, and :class:`float`, :meth:`!__eq__` does "
506- "not release the underlying lock during comparisons and this is not a concern."
502+ "modified by another thread. For built-in types like :class:`str`, :class: "
503+ "` int`, and :class:`float`, :meth:`!__eq__` does not release the underlying "
504+ "lock during comparisons and this is not a concern."
507505msgstr ""
508506
509507#: ../../builtins/threadsafety.rst:369 ../../builtins/threadsafety.rst:470
@@ -562,9 +560,9 @@ msgstr ""
562560
563561#: ../../builtins/threadsafety.rst:406
564562msgid ""
565- ":meth:`set.update`, :meth:`set.union`, :meth:`set.intersection` "
566- "and :meth: `set.difference` can take multiple iterables as arguments. They "
567- "all iterate through all the passed iterables and do the following:"
563+ ":meth:`set.update`, :meth:`set.union`, :meth:`set.intersection` and :meth: "
564+ "`set.difference` can take multiple iterables as arguments. They all iterate "
565+ "through all the passed iterables and do the following:"
568566msgstr ""
569567
570568#: ../../builtins/threadsafety.rst:410
@@ -719,8 +717,8 @@ msgstr ""
719717
720718#: ../../builtins/threadsafety.rst:520
721719msgid ""
722- "All other bytearray methods (such "
723- "as :meth:`~bytearray.find`, :meth: `~bytearray.replace`, :meth:`~bytearray.split`, :meth:`~bytearray.decode`, "
720+ "All other bytearray methods (such as :meth:`~bytearray.find`, :meth: "
721+ "`~bytearray.replace`, :meth:`~bytearray.split`, :meth:`~bytearray.decode`, "
724722"etc.) hold the per-object lock for their duration."
725723msgstr ""
726724
@@ -769,10 +767,10 @@ msgstr ""
769767msgid ""
770768"The memoryview implementation uses atomic operations to track its own "
771769"exports in the :term:`free-threaded build`. Creating and releasing a "
772- "memoryview are thread-safe. Attribute access "
773- "(e.g., :attr:`~memoryview. shape`, :attr:`~memoryview.format`) reads fields "
774- "that are immutable for the lifetime of the memoryview, so concurrent reads "
775- "are safe as long as the memoryview has not been released."
770+ "memoryview are thread-safe. Attribute access (e.g., :attr:`~memoryview. "
771+ "shape`, :attr:`~memoryview.format`) reads fields that are immutable for the "
772+ "lifetime of the memoryview, so concurrent reads are safe as long as the "
773+ "memoryview has not been released."
776774msgstr ""
777775
778776#: ../../builtins/threadsafety.rst:569
@@ -820,7 +818,7 @@ msgstr ""
820818
821819#: ../../builtins/threadsafety.rst:604
822820msgid ""
823- "Resizing or reallocating the underlying object (such as "
824- "calling :meth: `bytearray.resize`) while a memoryview is exported "
825- "raises :exc: `BufferError`. This is enforced regardless of threading."
821+ "Resizing or reallocating the underlying object (such as calling :meth: "
822+ "`bytearray.resize`) while a memoryview is exported raises :exc: "
823+ "`BufferError`. This is enforced regardless of threading."
826824msgstr ""
0 commit comments