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/2000-February/002106.html below:

[Python-Dev] win32 specific exception in the core?

[Python-Dev] win32 specific exception in the core?Mark Hammond mhammond@skippinet.com.au
Mon, 7 Feb 2000 21:56:51 +1100
[Moshe writes:]

> How about, for windows, to derive "many" error classes from OSError on
> Win32, and always return the right one?

Another alternative would be to derive from EnvironmentError.  I would then
like to change the __str__ method from:

	...
      return '[Errno %s] %s: %s' % (self.errno, self.strerror,
	...

to

      return '[%s %s] %s: %s' % (self.getdesc(), self.errno, self.strerror,

Where getdesc() returns "OS Error", "IO Error" or "Win32 error"
respectively.

This all comes down to Guido tho.  I believe he is away, so if he doesnt
respond Ill simply send him a summary of the discussions and he can decide
lickety-split!

Mark.




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