Richard Oudkerk added the comment:

> What do you mean? The intent was to use poll() instead of select() 
> anywhere available in order to avoid running out of fds.
> The change didn't affect Windows because as of right now select() is 
> the only thing available.

The change *only* effects Windows.  Currently the code goes

    if sys.platform != 'win32':
        ...
    else:
        if hasattr(select, 'poll'):
            def _poll(fds, timeout):
                ...
        else:
            def _poll(fds, timeout):
                ...

So _poll() is only defined when sys.platform == 'win32'.

Furthermore, the _poll() function is never used anywhere: ConnectionBase.poll() 
uses Connection._poll(), which uses wait(), which uses select().

----------

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

Reply via email to