What Exceptions are there? (was: "a better input")

Duncan Booth duncan at NOSPAMrcp.co.uk
Mon May 13 04:26:59 EDT 2002


"Thomas Heller" <theller at python.net> wrote in
news:abh6el$i8lg6$1 at ID-59885.news.dfncis.de: 

>> You should get a small window popping up with some buttons and a text
>> box labelled 'Search for'. Type 'exceptions' into the box, press
>> return and click on the second entry 'exceptions - Python's standard
>> exception class hierarchy'.
> And for the (X)Emacs users:
> If you have a recent version of python-mode.el,
> type the word 'exceptions' in a python buffer, press F1,
> and voila! the same diagram appears.
> 
I also omitted to mention that in 2.2 and later typing:
   help()
and then entering 'exceptions' at the interactive prompt will give the same 
list, albeit followed by approximately another 1400 lines of output (so you 
will have to scroll back a long way to see it).
Ditto for "import exceptions; help(exceptions)"

-- 
Duncan Booth                                             duncan at rcp.co.uk
int month(char *p){return(124864/((p[0]+p[1]-p[2]&0x1f)+1)%12)["\5\x8\3"
"\6\7\xb\1\x9\xa\2\0\4"];} // Who said my code was obscure?



More information about the Python-list mailing list