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 yselivanov
Recipients aeros, asvetlov, serhiy.storchaka, xtreak, yselivanov
Date 2020-02-26.00:04:02
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1582675442.27.0.374551991039.issue39529@roundup.psfhosted.org>
In-reply-to
Content
> For asyncio.Lock (plus other synchronization primitives) and asyncio.Queue, this would be added in https://github.com/python/cpython/pull/18195. Currently waiting on emanu (author of the PR) to finish up some changes, but it's mostly complete. Could I work on adding it to asyncio.Future and other classes in the meantime?

I think the approach should be different:


  # leading underscore is significant:
  loop = asyncio._get_running_loop()  
  if loop is None:
    issue_deprecation_warning()
    loop = asyncio.get_event_loop()
History
Date User Action Args
2020-02-26 00:04:02yselivanovsetrecipients: + yselivanov, asvetlov, serhiy.storchaka, xtreak, aeros
2020-02-26 00:04:02yselivanovsetmessageid: <1582675442.27.0.374551991039.issue39529@roundup.psfhosted.org>
2020-02-26 00:04:02yselivanovlinkissue39529 messages
2020-02-26 00:04:02yselivanovcreate