[issue32154] asyncio: Don't export selectors and _overlapped in asyncio namespace

STINNER Victor report at bugs.python.org
Tue Nov 28 10:40:40 EST 2017


STINNER Victor <victor.stinner at gmail.com> added the comment:

Serhiy Storchaka: "Is this function publicly documented? If this is true, it should first be deprecated."

It's not documented, but I found a reference in the documentation:
---
try:
    from socket import socketpair
except ImportError:
    from asyncio.windows_utils import socketpair
---

This code continues to work on Python 3.5 and newer, the "except" block will just never be taken.


> It is left in the __all__ list.

Oops, fixed in my PR.

----------

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue32154>
_______________________________________


More information about the Python-bugs-list mailing list