[Python-checkins] cpython (3.2): bytes() can't be used to get a representation of an object.
amaury.forgeotdarc
python-checkins at python.org
Tue Nov 22 22:02:15 CET 2011
http://hg.python.org/cpython/rev/88047eaa428a
changeset: 73698:88047eaa428a
branch: 3.2
parent: 73694:ba90839c4993
user: Amaury Forgeot d'Arc <amauryfa at gmail.com>
date: Tue Nov 22 19:34:08 2011 +0100
summary:
bytes() can't be used to get a representation of an object.
files:
Doc/library/exceptions.rst | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/Doc/library/exceptions.rst b/Doc/library/exceptions.rst
--- a/Doc/library/exceptions.rst
+++ b/Doc/library/exceptions.rst
@@ -40,9 +40,9 @@
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
- :func:`bytes` or :func:`str` is called on an instance of this class, the
- representation of the argument(s) to the instance are returned, or the empty
- string when there were no arguments.
+ :func:`str` is called on an instance of this class, the representation of
+ the argument(s) to the instance are returned, or the empty string when
+ there were no arguments.
.. attribute:: args
--
Repository URL: http://hg.python.org/cpython
More information about the Python-checkins
mailing list