Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 3b1acf1

Browse files
committed
bytes() can't be used to get a representation of an object.
1 parent a233df8 commit 3b1acf1

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

Doc/library/exceptions.rst

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -40,9 +40,9 @@ The following exceptions are used mostly as base classes for other exceptions.
4040

4141
The base class for all built-in exceptions. It is not meant to be directly
4242
inherited by user-defined classes (for that, use :exc:`Exception`). If
43-
:func:`bytes` or :func:`str` is called on an instance of this class, the
44-
representation of the argument(s) to the instance are returned, or the empty
45-
string when there were no arguments.
43+
:func:`str` is called on an instance of this class, the representation of
44+
the argument(s) to the instance are returned, or the empty string when
45+
there were no arguments.
4646

4747
.. attribute:: args
4848

0 commit comments

Comments
 (0)