Aw: Re: Re: How do you find what exceptions a class can throw?

Karsten Hilbert Karsten.Hilbert at gmx.net
Sun Dec 20 13:53:42 EST 2020


> > So what you are looking for is the form of a potential
> > "timeout exception" (say, exception name) ?
> >
> > Provoke one and have a look.
> >
> > Then catch what you saw.
>
> <https://docs.python.org/3.8/library/socket.html#socket.timeout>
>
> Programmers don't guess...

I did not suggest guessing.

I suggested gathering scientific evidence by
running a controlled experiment.

Or should I say "Programmers don't trust..." ?

Karsten


More information about the Python-list mailing list