> -----Original Message-----
> From: tutor-bounces+mhansen=cso.atmel.com@python.org
<and now something completely different ...>
Wait a minute, is that "atmel" in your e-mail address the one I think of ?
http://en.wikipedia.org/wiki/Atmel
If so please thank the AVR gurus for making the best quality/price microcontrollers in the world. I'm an happy user of an atmega8 and Python in this project: http://www.liberlab.net/
If by any chance your going to europython 2006 I'll be glad to show you that.
I've just been looking at your blog and I've seen the "Perl, the language I love to hate".
Personally I love this little cartoon about Perl :
http://mirror5.escomposlinux.org/comic/ecol-13-e.png
And if you have Perl working colleges you want to protect from I found this on the web ;)
http://scott.weston.id.au/software/pymissile-20060126/
cheers
francois
</and now something completely different ...>
> [mailto:[EMAIL PROTECTED] ] On
> Behalf Of Andy Koch
> Sent: Tuesday, June 13, 2006 8:42 AM
> To: tutor@python.org
> Subject: [Tutor] die or exit function?
>
> Bkgd: I've been doing PHP for the last several years.
>
> Q: In PHP there are functions die and exit which terminate
> processing of
> a script with an optional string output. Is there something
> similar to
> this in Python?
>
sys.exit("something bad happened")
Although it's probably better to catch the exception and deal with it and
then sys.exit() if need be.
Mike
http://users.adelphia.net/~mahansen/programming/
_______________________________________________
Tutor maillist - Tutor@python.org
http://mail.python.org/mailman/listinfo/tutor
_______________________________________________ Tutor maillist - Tutor@python.org http://mail.python.org/mailman/listinfo/tutor