[Python-checkins] r51839 - peps/trunk/pep-0352.txt peps/trunk/pep-0356.txt
brett.cannon
python-checkins at python.org
Sat Sep 9 09:23:21 CEST 2006
Author: brett.cannon
Date: Sat Sep 9 09:23:20 2006
New Revision: 51839
Modified:
peps/trunk/pep-0352.txt
peps/trunk/pep-0356.txt
Log:
Update PEP 352 on the removal of __unicode__ on BaseException and remove bug
#1551432 as a blocker for 2.5 .
Modified: peps/trunk/pep-0352.txt
==============================================================================
--- peps/trunk/pep-0352.txt (original)
+++ peps/trunk/pep-0352.txt Sat Sep 9 09:23:20 2006
@@ -66,7 +66,7 @@
Provides a 'message' attribute that contains either the single
argument to the constructor or the empty string. This attribute
- is used in both the string and unicode representation for the
+ is used in the string representation for the
exception. This is so that it provides the extra details in the
traceback.
@@ -80,10 +80,6 @@
"""Return the str of 'message'"""
return str(self.message)
- def __unicode__(self):
- """Return the unicode of 'message'"""
- return unicode(self.message)
-
def __repr__(self):
return "%s(%s)" % (self.__class__.__name__, repr(self.message))
@@ -221,17 +217,6 @@
if len(self.args) <= 1
else self.args)
- def __unicode__(self):
- """Return the unicode of args[0] or args, depending on length.
-
- Once 'args' has been removed, 'message' will be used
- exclusively for the unicode representation of exceptions.
-
- """
- return unicode(self.args[0]
- if len(self.args) <= 1
- else self.args)
-
def __repr__(self):
func_args = repr(self.args) if self.args else "()"
return self.__class__.__name__ + func_args
Modified: peps/trunk/pep-0356.txt
==============================================================================
--- peps/trunk/pep-0356.txt (original)
+++ peps/trunk/pep-0356.txt Sat Sep 9 09:23:20 2006
@@ -150,7 +150,6 @@
- Bugs that need resolving before release, ie, they block release:
- http://python.org/sf/1551432 - __unicode__ breaks on exception classes
http://python.org/sf/1541697 - sgmllib regexp bug causes hang
- Bugs deferred until 2.5.1 (or later)
More information about the Python-checkins
mailing list