[Tutor] help with web programming
Daniel Coughlin
kauphlyn@speakeasy.org
Fri, 31 Aug 2001 22:00:11 -0700 (PDT)
Ha ha. I understand now!
By the way, thanks for the code to fine tune the exception
handling. Before now, I knew nothing about the sys module.
Usually I am about as discriminating as
except StandardError:
yadda yadda
On Sat, 1 Sep 2001, Ignacio Vazquez-Abrams wrote:
>
> You misunderstood what I said (don't worry, you're about the fifth today...).
>
> What I meant was to tune your exception to catch IOError #10054 exclusively:
>
> ---
> try:
> ...
> except IOError:
> if sys.exc_info()[1].errno!=10054:
> raise
> ...
> ---
>
> --
> Ignacio Vazquez-Abrams <ignacio@openservices.net>
>
>
>
>
>
> _______________________________________________
> Tutor maillist - Tutor@python.org
> http://mail.python.org/mailman/listinfo/tutor
>