Mark Lawrence added the comment:

To me the patched code in readwrite seems cut and paste.  Could it be written 
something like this?
have_fileno = not map or obj._fileno in map
if have_fileno and flags & select.POLLIN:
    obj.handle_read_event()
if have_fileno and flags & select.POLLOUT:
    obj.handle_write_event()
if have_fileno and flags & select.POLLPRI:
    obj.handle_expt_event()
if (have_fileno and flags & (select.POLLHUP | select.POLLERR | select.POLLNVAL):
     obj.handle_close()

----------
nosy: +BreamoreBoy
versions: +Python 3.4, Python 3.5 -Python 3.3

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

Reply via email to