Skip to content

Commit 9b675af

Browse files
Apply suggestions from code review
Co-authored-by: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com>
1 parent 7ac748e commit 9b675af

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

peps/pep-0797.rst

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ the interpreter is shutting down using a simulated garbage collection.
2424

2525
For example:
2626

27-
.. code-block:: C
27+
.. code-block:: c
2828
2929
static PyObject *
3030
my_singleton_new(PyTypeObject *type, PyObject *args, PyObject *kwargs)
@@ -178,7 +178,7 @@ Immortality Has No Impact on Reference Counting Performance
178178

179179
If the primary issue with cross-interpreter reference counting is thread-safety,
180180
why not make reference counting atomic? Unfortunately, atomic operations are
181-
slower than their non-atomic counterparts, so this would hurt overalll
181+
slower than their non-atomic counterparts, so this would hurt overall
182182
performance. :pep:`703` managed to solve this issue using biased reference
183183
counting, splitting the reference count field into two, but at the cost of
184184
breaking the stable C API. Atomic reference counting on its own also doesn't
@@ -395,7 +395,7 @@ The initial problem to solve with deallocating immortal objects is that they
395395
can run finalizers, which might reference other immortal objects. Imagine a
396396
case where there are two immortal objects: A, and B. Object B has a finalizer
397397
that references object A, and object A has a finalizer that references object
398-
B. The solution is to simply run their finalizer seperately from their
398+
B. The solution is to simply run their finalizer separately from their
399399
deallocator.
400400

401401
Temporary Mortalization for Finalizers

0 commit comments

Comments
 (0)