mirror of
https://github.com/python/cpython.git
synced 2025-08-01 15:43:13 +00:00
[3.13] Docs: spelling and grammar fixes (GH-122084) (#122106)
Docs: spelling and grammar fixes (GH-122084)
Corrected some grammar and spelling issues in documentation.
(cherry picked from commit bc264eac3a
)
Co-authored-by: Ville Skyttä <ville.skytta@iki.fi>
Co-authored-by: Russell Keith-Magee <russell@keith-magee.com>
Co-authored-by: Bénédikt Tran <10796600+picnixz@users.noreply.github.com>
This commit is contained in:
parent
587a8f84ed
commit
3ae1236c73
22 changed files with 30 additions and 30 deletions
|
@ -188,7 +188,7 @@ Python's memory management C API provides functions in three different
|
|||
:ref:`allocation domains <allocator-domains>`: "raw", "mem", and "object".
|
||||
For thread-safety, the free-threaded build requires that only Python objects
|
||||
are allocated using the object domain, and that all Python object are
|
||||
allocated using that domain. This differes from the prior Python versions,
|
||||
allocated using that domain. This differs from the prior Python versions,
|
||||
where this was only a best practice and not a hard requirement.
|
||||
|
||||
.. note::
|
||||
|
|
|
@ -4022,7 +4022,7 @@ As you can see, this output isn't ideal. That's because the underlying code
|
|||
which writes to ``sys.stderr`` makes multiple writes, each of which results in a
|
||||
separate logged line (for example, the last three lines above). To get around
|
||||
this problem, you need to buffer things and only output log lines when newlines
|
||||
are seen. Let's use a slghtly better implementation of ``LoggerWriter``:
|
||||
are seen. Let's use a slightly better implementation of ``LoggerWriter``:
|
||||
|
||||
.. code-block:: python
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue