This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author drtyrsa
Recipients asvetlov, docs@python, drtyrsa, yselivanov
Date 2018-08-06.10:04:47
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1533549887.39.0.56676864532.issue34344@psf.upfronthosting.co.za>
In-reply-to
Content
The docstring says "This may be None or an instance of EventLoop". But docs explicitly state that get_event_loop "must never return None". The same docstring is also in the example in docs: https://docs.python.org/3.6/library/asyncio-eventloops.html#customizing-the-event-loop-policy

I propose changing it to:

def get_event_loop(self):
    """Get the event loop.

    Returns an instance of EventLoop or raises an exception.
    """

If the wording is ok, I'll make a PR.
History
Date User Action Args
2018-08-06 10:04:47drtyrsasetrecipients: + drtyrsa, asvetlov, docs@python, yselivanov
2018-08-06 10:04:47drtyrsasetmessageid: <1533549887.39.0.56676864532.issue34344@psf.upfronthosting.co.za>
2018-08-06 10:04:47drtyrsalinkissue34344 messages
2018-08-06 10:04:47drtyrsacreate