[Tutor] die or exit function?
francois schnell
francois.schnell at gmail.com
Tue Jun 13 22:05:41 CEST 2006
On 13/06/06, Mike Hansen <mhansen at cso.atmel.com> wrote:
>
>
>
> > -----Original Message-----
> > From: tutor-bounces+mhansen=cso.atmel.com at 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:tutor-bounces+mhansen=cso.atmel.com at python.org] On
> > Behalf Of Andy Koch
> > Sent: Tuesday, June 13, 2006 8:42 AM
> > To: tutor at 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 at python.org
> http://mail.python.org/mailman/listinfo/tutor
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.python.org/pipermail/tutor/attachments/20060613/d33b8f59/attachment.html
More information about the Tutor
mailing list