Exception handling

Martin v. Löwis loewis at informatik.hu-berlin.de
Wed May 8 09:53:02 EDT 2002


Philip Swartzleonard <starx at pacbell.net> writes:

> Hm, you can't 'raise 5' or anything? Or anything derived from object? 
> That's kind of wierd.

No, exceptions must be class instances.

Regards,
Martin



More information about the Python-list mailing list