Re: [Python-Dev] Small suggestion re help(Exception)

2010-04-21 Thread Nick Coghlan
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

Re: [Python-Dev] Small suggestion re help(Exception)

2010-04-21 Thread Rob Cliffe
- 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

Re: [Python-Dev] Small suggestion re help(Exception)

2010-04-21 Thread Michael Foord
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

[Python-Dev] Small suggestion re help(Exception)

2010-04-21 Thread Rob Cliffe
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