Docs: fix typos in documentation (gh-118941)

This commit is contained in:
Xie Yanbo 2024-05-16 07:38:32 +08:00 committed by GitHub
parent fb0cf7d140
commit 4d3ef8056a
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
9 changed files with 15 additions and 15 deletions

View File

@ -1345,7 +1345,7 @@ newer worked.
.. section: Library
The "ip" command is now used on Linux to determine MAC address in
uuid.getnode(). Pach by Bruno Cauet.
uuid.getnode(). Patch by Bruno Cauet.
..
@ -3930,7 +3930,7 @@ has been called.
.. nonce: 5CDoox
.. section: Library
New keyword argument ``unsafe`` to Mock. It raises ``AttributeError`` incase of
New keyword argument ``unsafe`` to Mock. It raises ``AttributeError`` in case of
an attribute startswith assert or assret.
..
@ -4339,7 +4339,7 @@ these modules are not used.
.. nonce: V1-XhC
.. section: Library
Include the broadcast address in the usuable hosts for IPv6 in ipaddress.
Include the broadcast address in the usable hosts for IPv6 in ipaddress.
..

View File

@ -1401,7 +1401,7 @@ array is extended.
.. section: Library
doctest.DocFileTest and doctest.testfile() now support packages (module
splitted into multiple directories) for the package parameter.
split into multiple directories) for the package parameter.
..

View File

@ -215,7 +215,7 @@ memcpy().
.. nonce: e5xc1i
.. section: Core and Builtins
Fix dict.pop() for splitted dictionary when trying to remove a "pending key"
Fix dict.pop() for split dictionary when trying to remove a "pending key"
(Not yet inserted in split-table). Patch by Xiang Zhang.
..

View File

@ -85,7 +85,7 @@ wrong line (typically the first line of the file).
.. nonce: Kl_fS5
.. section: Core and Builtins
Include sys/sysmacros.h for major(), minor(), and makedev(). GNU C libray
Include sys/sysmacros.h for major(), minor(), and makedev(). GNU C library
plans to remove the functions from sys/types.h.
..

View File

@ -214,7 +214,7 @@ Fix possible undefined behavior in _PyObject_FastCall_Prepend.
.. nonce: Kl_fS5
.. section: Core and Builtins
Include sys/sysmacros.h for major(), minor(), and makedev(). GNU C libray
Include sys/sysmacros.h for major(), minor(), and makedev(). GNU C library
plans to remove the functions from sys/types.h.
..
@ -1479,7 +1479,7 @@ memcpy().
.. nonce: e5xc1i
.. section: Core and Builtins
Fix dict.pop() for splitted dictionary when trying to remove a "pending key"
Fix dict.pop() for split dictionary when trying to remove a "pending key"
(Not yet inserted in split-table). Patch by Xiang Zhang.
..
@ -2516,7 +2516,7 @@ stdin.write() if the child process is still running but closed the pipe.
.. nonce: CdOuSl
.. section: Library
Addded empty __slots__ to abc.ABC. This allows subclassers to deny __dict__
Added empty __slots__ to abc.ABC. This allows subclassers to deny __dict__
and __weakref__ creation. Patch by Aaron Hall.
..

View File

@ -595,7 +595,7 @@ Add asyncio.get_running_loop() function.
.. section: Library
All class and static methods of builtin types now are correctly classified
by inspect.classify_class_attrs() and grouped in pydoc ouput. Added
by inspect.classify_class_attrs() and grouped in pydoc output. Added
types.ClassMethodDescriptorType for unbound class methods of builtin types.
..

View File

@ -875,4 +875,4 @@ by Stéphane Wirtel
.. section: C API
Add C API access to the ``datetime.timezone`` constructor and
``datetime.timzone.UTC`` singleton.
``datetime.timezone.UTC`` singleton.

View File

@ -46,8 +46,8 @@ Fix potential memory leak in ``normalizestring()``.
Change dict growth function from
``round_up_to_power_2(used*2+hashtable_size/2)`` to
``round_up_to_power_2(used*3)``. Previously, dict is shrinked only when
``used == 0``. Now dict has more chance to be shrinked.
``round_up_to_power_2(used*3)``. Previously, dict is shrunk only when
``used == 0``. Now dict has more chance to be shrunk.
..

View File

@ -1406,8 +1406,8 @@ Fix potential memory leak in ``normalizestring()``.
Change dict growth function from
``round_up_to_power_2(used*2+hashtable_size/2)`` to
``round_up_to_power_2(used*3)``. Previously, dict is shrinked only when
``used == 0``. Now dict has more chance to be shrinked.
``round_up_to_power_2(used*3)``. Previously, dict is shrunk only when
``used == 0``. Now dict has more chance to be shrunk.
..