Skip to content

Commit 7cc3f86

Browse files
Apply suggestions from code review
Co-authored-by: Stan Ulbrych <89152624+StanFromIreland@users.noreply.github.com>
1 parent 75d5664 commit 7cc3f86

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

Doc/library/threadsafety.rst

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
.. _threadsafety:
22

3-
******************************
3+
************************
44
Thread Safety Guarantees
5-
******************************
5+
************************
66

77
This page documents thread-safety guarantees for built-in types in Python's
88
free-threaded build. The guarantees described here apply when using Python with
@@ -16,13 +16,13 @@ For general guidance on writing thread-safe code in free-threaded Python, see
1616
.. _thread-safety-list:
1717

1818
Thread safety for list objects
19-
================================
19+
==============================
2020

2121
Reading a single element from a :class:`list` is
2222
:term:`atomic <atomic operation>`:
2323

2424
.. code-block::
25-
:class: green
25+
:class: good
2626
2727
lst[i] # list.__getitem__
2828
@@ -124,7 +124,7 @@ across threads.
124124
.. _thread-safety-dict:
125125

126126
Thread safety for dict objects
127-
================================
127+
==============================
128128

129129
Creating a dictionary with the :class:`dict` constructor is atomic when the
130130
argument to it is a :class:`dict` or a :class:`tuple`. When using the

0 commit comments

Comments
 (0)