PEP 703: Correct two spelling mistakes (#3298)

This commit is contained in:
Rémi Lapeyre 2023-08-21 18:20:54 +02:00 committed by GitHub
parent 1509c88e79
commit b03237ebc8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -474,7 +474,7 @@ field.
Default (``0b00``) Default (``0b00``)
"""""""""""""""""" """"""""""""""""""
Objects are intitially created in the default state. This is the only Objects are initially created in the default state. This is the only
state that allows for the quick deallocation code path. Otherwise, the state that allows for the quick deallocation code path. Otherwise, the
thread must merge the local and shared reference count fields, which thread must merge the local and shared reference count fields, which
requires an atomic compare-and-swap. requires an atomic compare-and-swap.
@ -1311,7 +1311,7 @@ The ``PYTHONGIL=0`` override is important because extensions that are
not thread-safe can still be useful in multi-threaded applications. For not thread-safe can still be useful in multi-threaded applications. For
example, one may want to use the extension from only a single thread or example, one may want to use the extension from only a single thread or
guard access by locks. For context, there are already some extensions guard access by locks. For context, there are already some extensions
that aren not thread-safe even with the GIL, and users already have to that are not thread-safe even with the GIL, and users already have to
take these sorts of steps. take these sorts of steps.
The ``PYTHONGIL=1`` override is sometimes useful for debugging. The ``PYTHONGIL=1`` override is sometimes useful for debugging.