[Tutor] Python equiv of Perl's 'or die()' syntax

Ben Beuchler insyte@emt-p.org
Wed, 19 Jul 2000 17:09:07 -0500


Is there a simple equivalent to Perl's 'or die()' syntax?

Similar to this:

open( MYFILE, 'filethatdoesnotexist') or die "Help me!!:$!"

Gracias,
Ben

-- 
Ben Beuchler                                         insyte@bitstream.net
MAILER-DAEMON                                         (612)-321-9290 x101
Bitstream Underground                                   www.bitstream.net