[Tutor] how to catch particular Errno for Exceptions

Brian van den Broek bvande at po-box.mcgill.ca
Mon Apr 5 22:33:18 EDT 2004


Danny Yoo said unto the world upon 05/04/2004 21:32:

> On Mon, 5 Apr 2004, Brian van den Broek wrote:
> 
>>how do I catch a specific Errno for an exception?

<SNIP>

> Hi Brian,
> 
> According to the library documentation on the builtin exceptions:
> 
>     http://www.python.org/doc/lib/module-exceptions.html
> 
> we can take the exception instance, and look at its 'errno' attribute
> value.  For example:

<SNIP>

> Hope this helps!

Danny and Karl,

thanks for your responses. They clear it up for me considerably!

Thanks and best,

Brian vdB




More information about the Tutor mailing list