[issue25749] asyncio.Server class documented but not exported

Yury Selivanov report at bugs.python.org
Wed Dec 20 16:37:43 EST 2017


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

There's no point in exporting the Server class as "asyncio.Server".  It'd created and managed by the event loop, and there's no point to instantiate it in user code.

We can add an abstract base class AbstractServer though, similar to AbstractFuture and AbstractTask proposed in https://bugs.python.org/issue32364.

This is a low priority feature and can probably wait till 3.8 though.

----------
versions: +Python 3.8 -Python 3.6, Python 3.7

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


More information about the Python-bugs-list mailing list