diff options
author | Serhiy Storchaka <storchaka@gmail.com> | 2016-04-17 06:37:36 (GMT) |
---|---|---|
committer | Serhiy Storchaka <storchaka@gmail.com> | 2016-04-17 06:37:36 (GMT) |
commit | 9a118f1dc3f23ead28f31fdc5144ad5ce01e5b7f (patch) | |
tree | 4878492acdcc033c71d4be46967537291d433cb1 /Doc/c-api | |
parent | 0bb165ecc114fcf7ce1df454355c4cbbef8b63e9 (diff) | |
download | cpython-9a118f1dc3f23ead28f31fdc5144ad5ce01e5b7f.zip cpython-9a118f1dc3f23ead28f31fdc5144ad5ce01e5b7f.tar.gz cpython-9a118f1dc3f23ead28f31fdc5144ad5ce01e5b7f.tar.bz2 |
Issue #26778: Fixed "a/an/and" typos in code comment and documentation.
Diffstat (limited to 'Doc/c-api')
-rw-r--r-- | Doc/c-api/object.rst | 2 | ||||
-rw-r--r-- | Doc/c-api/set.rst | 6 | ||||
-rw-r--r-- | Doc/c-api/unicode.rst | 2 |
3 files changed, 5 insertions, 5 deletions
diff --git a/Doc/c-api/object.rst b/Doc/c-api/object.rst index 50b83e9..1f0bd17 100644 --- a/Doc/c-api/object.rst +++ b/Doc/c-api/object.rst @@ -157,7 +157,7 @@ Object Protocol .. index:: builtin: bytes - Compute a bytes representation of object *o*. In 2.x, this is just a alias + Compute a bytes representation of object *o*. In 2.x, this is just an alias for :c:func:`PyObject_Str`. diff --git a/Doc/c-api/set.rst b/Doc/c-api/set.rst index 258530b..f6ebcf3 100644 --- a/Doc/c-api/set.rst +++ b/Doc/c-api/set.rst @@ -140,7 +140,7 @@ or :class:`frozenset` or instances of their subtypes. Add *key* to a :class:`set` instance. Does not apply to :class:`frozenset` instances. 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 + Raise a :exc:`SystemError` if *set* is not an instance of :class:`set` or its subtype. .. versionchanged:: 2.6 @@ -158,7 +158,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. @@ -166,7 +166,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. diff --git a/Doc/c-api/unicode.rst b/Doc/c-api/unicode.rst index 3262354..85800c5 100644 --- a/Doc/c-api/unicode.rst +++ b/Doc/c-api/unicode.rst @@ -260,7 +260,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")``. | |