On Fri, Nov 16, 2012 at 6:30 PM, Steven D'Aprano
<steve+comp.lang.pyt...@pearwood.info> wrote:
> Does anyone use StandardError in their own code? In Python 2, I normally
> inherit from StandardError rather than Exception. Should I stop and just
> inherit from Exception in both 2 and 3?

According to the docs, StandardError is for built-in exceptions, and
user-defined exceptions are meant to inherit from Exception.

http://docs.python.org/2/library/exceptions.html#exceptions.Exception
-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to