[issue23046] asyncio.BaseEventLoop is documented, but only exported via asyncio.base_events

STINNER Victor report at bugs.python.org
Wed Dec 17 01:27:58 CET 2014


STINNER Victor added the comment:

> why was Server there at all? Tests?

If you cannot answer, who can answer? :-)
https://code.google.com/p/tulip/source/detail?r=f136c04d82c0 (You
added Server to __all__.)

I don't see any use case which needs to create explicitly a Server
class. There are the create_server() method and start_server()
function for that.

By the way, the Server class *is* documented as asyncio.Server, which
is the same mistake than asyncio.BaseEventLoop:
https://docs.python.org/dev/library/asyncio-eventloop.html#asyncio.Server

I propose to update the doc for Server, replace asyncio.Server with
asyncio.base_events.Server.

----------

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue23046>
_______________________________________


More information about the Python-bugs-list mailing list