Hi Arnaud,

"Arnaud Delobelle" <[EMAIL PROTECTED]> wrote in message 
news:[EMAIL PROTECTED]
> That's because the class 'Exception' defines a descriptor 'args' which
> has to be a sequence.

Ah, thanks.  I was following the example in Beazley's book and should have dug 
into the actual documentation a bit more.

> OTOH you could just take advantage of Exception.args:
>>>> class MyError(Exception): pass

Sounds good to me.  I take it that, if I don't inherit from Exception, various 
expected behaviors will break?  (This is what Beazley suggests...)

---Joel


--
http://mail.python.org/mailman/listinfo/python-list

Reply via email to