mirror of
https://github.com/python/cpython.git
synced 2025-10-02 21:25:24 +00:00
bytes() can't be used to get a representation of an object.
This commit is contained in:
parent
a233df885b
commit
3b1acf11e9
1 changed files with 3 additions and 3 deletions
|
@ -40,9 +40,9 @@ The following exceptions are used mostly as base classes for other exceptions.
|
||||||
|
|
||||||
The base class for all built-in exceptions. It is not meant to be directly
|
The base class for all built-in exceptions. It is not meant to be directly
|
||||||
inherited by user-defined classes (for that, use :exc:`Exception`). If
|
inherited by user-defined classes (for that, use :exc:`Exception`). If
|
||||||
:func:`bytes` or :func:`str` is called on an instance of this class, the
|
:func:`str` is called on an instance of this class, the representation of
|
||||||
representation of the argument(s) to the instance are returned, or the empty
|
the argument(s) to the instance are returned, or the empty string when
|
||||||
string when there were no arguments.
|
there were no arguments.
|
||||||
|
|
||||||
.. attribute:: args
|
.. attribute:: args
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue