Gregory P. Smith added the comment:

I do not consider this a feature; that EINTR is exposed as an exception from 
the API is a bug.  But Larry is the only one who can actually make that 
decision as the 3.4 release manager (+nosy'd).

> by returning an empty list you force the user to handle EINTR -
> just in a different way.

The user now only has one thing to deal with instead of two: an empty list 
being returned; something they should already have been dealing with. Gone will 
be the OSError(EINTR) exception as a rare, often never tested for, alternate 
form of the same retry needed indication.

I never see code intentionally wanting to receive and handle an OSError(EINTR) 
exception but I constantly run into code that is buggy due to some library it 
is using not getting this right... Where it isn't up to the code exhibiting the 
problem because the only place to fix it is within the library they use that is 
outside of that code's control.

We've got the opportunity to fix this nit once and for all here, lets do it.

----------
nosy: +larry

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue18885>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to