try... except with unknown error types

Chris Angelico rosuav at gmail.com
Tue Aug 23 04:26:11 EDT 2011


On Tue, Aug 23, 2011 at 8:21 AM, Paul Rubin <no.email at nospam.invalid> wrote:
> Chris Angelico <rosuav at gmail.com> writes:
>> Ehh, granted. Definitely a case of "should". But certainly, there
>> won't be an infinite number of new exceptions invented;
>
> Right, the number is finite, but the issue is that it's unknown.  It's
> like never knowing whether you've fixed the last bug in a program.
>

Yeah. Oh, I know when I've fixed the last bug in a program. It's the
day the program gets deleted. Until then? Nope.

ChrisA



More information about the Python-list mailing list