A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from http://mail.python.org/pipermail/python-dev/2009-September/092273.html below:

[Python-Dev] IO module precisions and exception hierarchy

[Python-Dev] IO module precisions and exception hierarchy [Python-Dev] IO module precisions and exception hierarchyMichael Foord fuzzyman at voidspace.org.uk
Tue Sep 29 01:21:50 CEST 2009
Greg Ewing wrote:
> Michael Foord wrote:
>
>> Well, the file type knows what mode it is opened in so catching these 
>> errors is really not difficult at all.
>
> Yes, in this particular case it could do some checking of
> its own before making the system call. But this still has
> nothing to do with the exception hierarchy.
>
You said that having an exception hierarchy was impossible because the 
only information we have is the error number. Some errors could easily 
be caught.

Michael

-- 
http://www.ironpythoninaction.com/
http://www.voidspace.org.uk/blog


More information about the Python-Dev mailing list

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4