mirror of
https://github.com/python/cpython.git
synced 2025-08-04 17:08:35 +00:00
bpo-35044, doc: Use the :exc: role for the exceptions (GH-10037)
This commit is contained in:
parent
ddb961d2ab
commit
e483f02423
17 changed files with 19 additions and 17 deletions
|
@ -39,7 +39,7 @@ pipe).
|
|||
|
||||
All streams are careful about the type of data you give to them. For example
|
||||
giving a :class:`str` object to the ``write()`` method of a binary stream
|
||||
will raise a ``TypeError``. So will giving a :class:`bytes` object to the
|
||||
will raise a :exc:`TypeError`. So will giving a :class:`bytes` object to the
|
||||
``write()`` method of a text stream.
|
||||
|
||||
.. versionchanged:: 3.3
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue