mirror of
https://github.com/python/cpython.git
synced 2025-08-03 00:23:06 +00:00
Issue #26778: Fixed "a/an/and" typos in code comment, documentation and error
messages.
This commit is contained in:
commit
b6a9c9761c
68 changed files with 93 additions and 92 deletions
|
@ -128,7 +128,7 @@ or :class:`frozenset` or instances of their subtypes.
|
|||
of brand new frozensets before they are exposed to other code). Return 0 on
|
||||
success or -1 on failure. Raise a :exc:`TypeError` if the *key* is
|
||||
unhashable. Raise a :exc:`MemoryError` if there is no room to grow. Raise a
|
||||
:exc:`SystemError` if *set* is an not an instance of :class:`set` or its
|
||||
:exc:`SystemError` if *set* is not an instance of :class:`set` or its
|
||||
subtype.
|
||||
|
||||
|
||||
|
@ -142,7 +142,7 @@ subtypes but not for instances of :class:`frozenset` or its subtypes.
|
|||
error is encountered. Does not raise :exc:`KeyError` for missing keys. Raise a
|
||||
:exc:`TypeError` if the *key* is unhashable. Unlike the Python :meth:`~set.discard`
|
||||
method, this function does not automatically convert unhashable sets into
|
||||
temporary frozensets. Raise :exc:`PyExc_SystemError` if *set* is an not an
|
||||
temporary frozensets. Raise :exc:`PyExc_SystemError` if *set* is not an
|
||||
instance of :class:`set` or its subtype.
|
||||
|
||||
|
||||
|
@ -150,7 +150,7 @@ subtypes but not for instances of :class:`frozenset` or its subtypes.
|
|||
|
||||
Return a new reference to an arbitrary object in the *set*, and removes the
|
||||
object from the *set*. Return *NULL* on failure. Raise :exc:`KeyError` if the
|
||||
set is empty. Raise a :exc:`SystemError` if *set* is an not an instance of
|
||||
set is empty. Raise a :exc:`SystemError` if *set* is not an instance of
|
||||
:class:`set` or its subtype.
|
||||
|
||||
|
||||
|
|
|
@ -367,7 +367,7 @@ These APIs can be used to work with surrogates:
|
|||
|
||||
.. c:macro:: Py_UNICODE_IS_HIGH_SURROGATE(ch)
|
||||
|
||||
Check if *ch* is an high surrogate (``0xD800 <= ch <= 0xDBFF``).
|
||||
Check if *ch* is a high surrogate (``0xD800 <= ch <= 0xDBFF``).
|
||||
|
||||
.. c:macro:: Py_UNICODE_IS_LOW_SURROGATE(ch)
|
||||
|
||||
|
@ -450,7 +450,7 @@ APIs:
|
|||
| :attr:`%%` | *n/a* | The literal % character. |
|
||||
+-------------------+---------------------+--------------------------------+
|
||||
| :attr:`%c` | int | A single character, |
|
||||
| | | represented as an C int. |
|
||||
| | | represented as a C int. |
|
||||
+-------------------+---------------------+--------------------------------+
|
||||
| :attr:`%d` | int | Exactly equivalent to |
|
||||
| | | ``printf("%d")``. |
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue