[issue25749] asyncio.Server class documented but not exported

Yury Selivanov report at bugs.python.org
Wed Dec 20 22:45:43 EST 2017


Yury Selivanov <yselivanov at gmail.com> added the comment:

>  I'm really not sure there's ANY call other than getsockaddr() that really makes sense here, though, so perhaps it would be better to evolve the API in AbstractServer into returning a list of sockaddr tuples rather than sockets.

Right, that's why uvloop exposes only SocketLike objects, that have getsockaddr() and getsockopt(), but raise when sock.send() is called.  Maybe we'll do the same thing in asyncio.

----------

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


More information about the Python-bugs-list mailing list