Skip to content

document the new behavior of get_event_loop() in Python 3.6 #75118

Closed

Description

@cjerdonek
BPO 30935
Nosy @cjerdonek, @1st1, @miss-islington
PRs
  • bpo-30935: update get_event_loop docs #2731
  • [3.7] bpo-30935: update get_event_loop docs (GH-2731) #7213
  • [3.6] bpo-30935: update get_event_loop docs (GH-2731) #7214
  • Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.

    Show more details

    GitHub fields:

    assignee = None
    closed_at = <Date 2018-05-29.22:50:47.630>
    created_at = <Date 2017-07-15.02:03:41.684>
    labels = ['type-feature', '3.7', 'docs', 'expert-asyncio']
    title = 'document the new behavior of get_event_loop() in Python 3.6'
    updated_at = <Date 2018-05-29.22:50:47.630>
    user = 'https://github.com/cjerdonek'

    bugs.python.org fields:

    activity = <Date 2018-05-29.22:50:47.630>
    actor = 'yselivanov'
    assignee = 'docs@python'
    closed = True
    closed_date = <Date 2018-05-29.22:50:47.630>
    closer = 'yselivanov'
    components = ['Documentation', 'asyncio']
    creation = <Date 2017-07-15.02:03:41.684>
    creator = 'chris.jerdonek'
    dependencies = []
    files = []
    hgrepos = []
    issue_num = 30935
    keywords = ['patch']
    message_count = 4.0
    messages = ['298380', '318067', '318073', '318074']
    nosy_count = 4.0
    nosy_names = ['chris.jerdonek', 'docs@python', 'yselivanov', 'miss-islington']
    pr_nums = ['2731', '7213', '7214']
    priority = 'normal'
    resolution = 'fixed'
    stage = 'resolved'
    status = 'closed'
    superseder = None
    type = 'enhancement'
    url = 'https://bugs.python.org/issue30935'
    versions = ['Python 3.6', 'Python 3.7']

    Activity

    1. cjerdonek commented on Jul 15, 2017

      @cjerdonek
      MemberAuthor

      Currently, the Python asyncio.get_event_loop() docs don't say that get_event_loop() returns the currently running event loop when it is called from a coroutine:

      https://docs.python.org/3/library/asyncio-eventloops.html#asyncio.get_event_loop
      https://docs.python.org/3/library/asyncio-eventloops.html#asyncio.AbstractEventLoopPolicy.get_event_loop

      This is new behavior that was introduced in Python 3.6 in this issue:
      python/asyncio#452

      Without this, the docs make it seem like get_event_loop() should return the loop that was last passed to set_event_loop().

      This could be added with a "Changed in version 3.6" note.

    2. changed the title [-]document the new behavior of get_event_loop() Python 3.6[/-] [+]document the new behavior of get_event_loop() in Python 3.6[/+] on Jul 15, 2017
    3. 1st1 commented on May 29, 2018

      @1st1
      Member

      New changeset e55de2d by Yury Selivanov (Mandeep Singh) in branch 'master':
      bpo-30935: update get_event_loop docs (GH-2731)
      e55de2d

    4. miss-islington commented on May 29, 2018

      @miss-islington
      Contributor

      New changeset ca64f3e by Miss Islington (bot) in branch '3.7':
      bpo-30935: update get_event_loop docs (GH-2731)
      ca64f3e

    5. miss-islington commented on May 29, 2018

      @miss-islington
      Contributor

      New changeset 51bf38f by Miss Islington (bot) in branch '3.6':
      bpo-30935: update get_event_loop docs (GH-2731)
      51bf38f

    6. transferred this issue fromon Apr 10, 2022
    Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

    Metadata

    Metadata

    Assignees

    No one assigned

      Labels

      Projects

      No projects

        Milestone

        No milestone

        Relationships

        None yet

        Development

        No branches or pull requests

        Issue actions