Skip to content

Commit 4187ff0

Browse files
lysnikolaouencukou
andauthored
Apply suggestions from code review
Co-authored-by: Petr Viktorin <encukou@gmail.com>
1 parent 90cac54 commit 4187ff0

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

Doc/library/stdtypes.rst

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5558,7 +5558,7 @@ can be used interchangeably to index the same dictionary entry.
55585558
considerations as above apply.
55595559

55605560
The following operations return new objects and hold the per-object lock
5561-
for the duration:
5561+
for the duration of the operation:
55625562

55635563
.. code-block::
55645564
:class: good
@@ -5605,9 +5605,9 @@ can be used interchangeably to index the same dictionary entry.
56055605
.. code-block::
56065606
:class: maybe
56075607
5608-
d.update(iterable) # iterable is not a dict
5609-
d |= iterable # iterable is not a dict
5610-
dict.fromkeys(iterable) # iterable is not a dict/set/frozenset
5608+
d.update(iterable) # iterable is not a dict: only d locked
5609+
d |= iterable # iterable is not a dict: only d locked
5610+
dict.fromkeys(iterable) # iterable is not a dict/set/frozenset: only result locked
56115611
56125612
Operations that involve multiple accesses, as well as iteration, are never
56135613
atomic:

0 commit comments

Comments
 (0)