Rob Cliffe wrote:
> Yes, exactly like that.
> I wasn't aware of __subclasses__ (it doesn't appear in
> dir(ArithmeticError),
> for example)
Slight tangent: dir() usually includes class attributes (e.g.
"set(dir(1)) >= set(dir(int))"), but to prevent weirdness that
particular feature is omitted for
- Original Message -
From: "Aurélien Campeas"
To: "Rob Cliffe"
Sent: Wednesday, April 21, 2010 5:25 PM
Subject: Re: [Python-Dev] Small suggestion re help(Exception)
> like in
>
>>>> ArithmeticError.__subclasses__()
> [, 'exceptions.Overf
On 21/04/2010 18:17, Rob Cliffe wrote:
help() on an Exception class lists the method resolution order
(effectively the inheritance hierarchy).
E.g. help(ArithmeticError) displays inter alia:
Method resolution order:
ArithmeticError
StandardError
Exception
BaseException
__buil
help() on an Exception class lists the method resolution order (effectively the
inheritance hierarchy).
E.g. help(ArithmeticError) displays inter alia:
Method resolution order:
ArithmeticError
StandardError
Exception
BaseException
__builtin__.object
Would it be possible for i