Perl is worse!
Martijn Faassen
m.faassen at vet.uu.nl
Sun Jul 30 17:25:10 EDT 2000
Steve Lamb <grey at despair.rpglink.com> wrote:
[snip]
> Personally, if my email client died because of some uncaught exception
> versus me being able to close out my message beacuse of some bug in a display
> routine, I'd rather be able to close out and save my 20k message than have to
> retype it. There is more to programs than databases.
Then have your program catch your exceptions! That's one of the main
reasons for the existence of the exception handling mechanism; to recover
gracefully from the unexpected.
It is possible to catch *all* exceptions, if you're worried about that.
Or whole groups of exceptions, if you like. They're in a hierarchy.
And face it, bugs can cause data-loss in any programming language;
Perl, Python, or whatever. Some languages just have nicer mechanisms to
recover from bugs than others.
[snip]
> No, I made sure there was a number in there, Python is the one that
> decided to drop a None in.
No, there wasn't a number there, as otherwise Python wouldn't have
dropped in None. The only alternative is that your regular expression
is buggy.
Regards,
Martijn
--
History of the 20th Century: WW1, WW2, WW3?
No, WWW -- Could we be going in the right direction?
More information about the Python-list
mailing list