commit of r41349 - peps/trunk

Author: brett.cannon Date: Sat Oct 29 05:26:51 2005 New Revision: 41349 Modified: peps/trunk/pep-0352.txt Log: Fix __init__ for BaseException to be completely backwards-compatible for 'args'. Modified: peps/trunk/pep-0352.txt ============================================================================== --- peps/trunk/pep-0352.txt (original) +++ peps/trunk/pep-0352.txt Sat Oct 29 05:26:51 2005 @@ -63,12 +63,10 @@ """ - def __init__(self, message='', *args): + def __init__(self, *args): """Set 'message' and 'args' attribute""" - self.message = message - self.args = ((message,) + args - if message != '' - else tuple()) + self.args = args + self.message = args[0] if args else '' def __str__(self): """Return the str of 'message'"""
participants (1)
-
brett.cannon@python.org