Update PEP 352 on the removal of __unicode__ on BaseException and remove bug
#1551432 as a blocker for 2.5 .
This commit is contained in:
parent
d232b63aae
commit
e78a10627f
17
pep-0352.txt
17
pep-0352.txt
|
@ -66,7 +66,7 @@ work in Python 2.x is covered in the `Transition Plan`_ section)::
|
|||
|
||||
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 @@ work in Python 2.x is covered in the `Transition Plan`_ section)::
|
|||
"""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 @@ Here is BaseException as implemented in the 2.x series::
|
|||
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
|
||||
|
|
|
@ -150,7 +150,6 @@ Open issues
|
|||
|
||||
- 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)
|
||||
|
|
Loading…
Reference in New Issue