[issue1481036] IOBaseError

2008-04-14 Thread Armin Rigo

Changes by Armin Rigo [EMAIL PROTECTED]:


--
nosy:  -arigo

_
Tracker [EMAIL PROTECTED]
http://bugs.python.org/issue1481036
_
___
Python-bugs-list mailing list 
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue1481036] IOBaseError

2008-04-13 Thread Armin Rigo

Armin Rigo [EMAIL PROTECTED] added the comment:

This will break many existing applications, no?  I can easily think of
examples of reasonable code that would no longer work as intended. 
What's even worse, breakage might only show up in exceptional cases and
give obscure results (e.g. reporting the wrong problem to the user).

--
nosy: +arigo

_
Tracker [EMAIL PROTECTED]
http://bugs.python.org/issue1481036
_
___
Python-bugs-list mailing list 
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue1481036] IOBaseError

2008-04-13 Thread Benjamin Peterson

Benjamin Peterson [EMAIL PROTECTED] added the comment:

Py3k then?

--
versions: +Python 3.0 -Python 2.6

_
Tracker [EMAIL PROTECTED]
http://bugs.python.org/issue1481036
_
___
Python-bugs-list mailing list 
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue1481036] IOBaseError

2008-04-12 Thread Benjamin Peterson

Benjamin Peterson [EMAIL PROTECTED] added the comment:

Something like this was done in 2.5.

--
nosy: +benjamin.peterson
resolution:  - fixed

_
Tracker [EMAIL PROTECTED]
http://bugs.python.org/issue1481036
_
___
Python-bugs-list mailing list 
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue1481036] IOBaseError

2008-04-12 Thread Benjamin Peterson

Changes by Benjamin Peterson [EMAIL PROTECTED]:


--
status: open - closed

_
Tracker [EMAIL PROTECTED]
http://bugs.python.org/issue1481036
_
___
Python-bugs-list mailing list 
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue1481036] IOBaseError

2008-04-12 Thread Gregory P. Smith

Gregory P. Smith [EMAIL PROTECTED] added the comment:

I don't think so.

socket.error has been changed to inherit from IOError in 2.6 (and thus
socket.sslerror which inherits from socket.error).

EOFError has not changed.

ftplib.all_errors is already a tuple of (ftplib.Error, socket.error,
IOError, EOFError) which demonstrates the issue...

Anyways there was discussion on python-dev around the time I made
socket.error extend IOError.  Adding a new exception to the heirarchy
was frowned upon.  EnvironmentError is already suitable for that task.

Perhaps EOFError should extend EnvironmentError as well?

--
nosy: +gregory.p.smith
versions: +Python 2.6

_
Tracker [EMAIL PROTECTED]
http://bugs.python.org/issue1481036
_
___
Python-bugs-list mailing list 
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue1481036] IOBaseError

2008-04-12 Thread Gregory P. Smith

Changes by Gregory P. Smith [EMAIL PROTECTED]:


--
resolution: fixed - 
status: closed - open

_
Tracker [EMAIL PROTECTED]
http://bugs.python.org/issue1481036
_
___
Python-bugs-list mailing list 
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue1481036] IOBaseError

2008-04-12 Thread Benjamin Peterson

Benjamin Peterson [EMAIL PROTECTED] added the comment:

Yes, that'd make sense. Ask on python-dev, though.

--
resolution:  - fixed
status: open - closed

_
Tracker [EMAIL PROTECTED]
http://bugs.python.org/issue1481036
_
___
Python-bugs-list mailing list 
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue1481036] IOBaseError

2008-04-12 Thread Gregory P. Smith

Gregory P. Smith [EMAIL PROTECTED] added the comment:

The problem with EOFError as a child of EnvironmentError is that it
wouldn't conform to EnvironmentError's standard 2-tuple or 3-tuple of
args representing errno and the associate string and optionally filename.

So inserting an exception above EnvironmentError would be a solution to
that for EOFError.  Alternatively, EOFError could have some default
2-tuple values and be a child of EnvironmentError.

thoughts or pronouncements anyone?  (asking python-dev now)

_
Tracker [EMAIL PROTECTED]
http://bugs.python.org/issue1481036
_
___
Python-bugs-list mailing list 
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com