On 6/21/05, Steven Bethard <[EMAIL PROTECTED]> wrote: > James Stroud wrote: > P.S. If you insist on using the two argument version of raise, you can > do it like this: > > py> class E(Exception): > ... def __init__(self, atup): > ... Exception.__init__(self, "Error with %s-%s" % atup) > > But that seems a lot less elegant than simply using the one argument > version.
Another workaround would be to use __init__(self, *atup), but raising an explicitly constructed exception is preferable (IMO). - kv -- http://mail.python.org/mailman/listinfo/python-list