Skip to content

asyncio.run documentation does not mention its return value #82441

Closed

Description

@edd07
mannequin
BPO 38260
Nosy @asvetlov, @1st1, @eamanu, @miss-islington, @aeros, @edd07
PRs
  • bpo-38260: Add Docs on asyncio.run #16337
  • [3.8] bpo-38260: Add Docs on asyncio.run (GH-16337) #16379
  • [3.7] bpo-38260: Add Docs on asyncio.run (GH-16337) #16380
  • 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 2019-09-25.09:23:16.404>
    created_at = <Date 2019-09-23.15:40:12.846>
    labels = ['type-feature', '3.7', 'docs', 'expert-asyncio']
    title = 'asyncio.run documentation does not mention its return value'
    updated_at = <Date 2019-09-25.09:23:16.404>
    user = 'https://github.com/edd07'

    bugs.python.org fields:

    activity = <Date 2019-09-25.09:23:16.404>
    actor = 'asvetlov'
    assignee = 'docs@python'
    closed = True
    closed_date = <Date 2019-09-25.09:23:16.404>
    closer = 'asvetlov'
    components = ['Documentation', 'asyncio']
    creation = <Date 2019-09-23.15:40:12.846>
    creator = 'edd07'
    dependencies = []
    files = []
    hgrepos = []
    issue_num = 38260
    keywords = ['patch']
    message_count = 4.0
    messages = ['353033', '353041', '353156', '353157', '353158']
    nosy_count = 7.0
    nosy_names = ['asvetlov', 'docs@python', 'yselivanov', 'eamanu', 'miss-islington', 'aeros', 'edd07']
    pr_nums = ['16337', '16379', '16380']
    priority = 'normal'
    resolution = 'fixed'
    stage = 'resolved'
    status = 'closed'
    superseder = None
    type = 'enhancement'
    url = 'https://bugs.python.org/issue38260'
    versions = ['Python 3.7']

    Activity

    1. edd07 commented on Sep 23, 2019

      edd07mannequin
      MannequinAuthor

      The documentation for asyncio.run (https://docs.python.org/3/library/asyncio-task.html#asyncio.run) does not mention the function's return value or lack of one.

      Looking at the source, its clear it returns the passed coroutine's value via loop.run_until_complete, but the documentation or the provided example do not make it clear.

    2. added
      docs
      type-feature
      on Sep 23, 2019
    3. eamanu commented on Sep 23, 2019

      eamanumannequin
      Mannequin

      So, I think that will return the Future's return, isn't? I will propose a PR for this

    4. miss-islington commented on Sep 25, 2019

      @miss-islington
      Contributor

      New changeset 17deb16 by Miss Islington (bot) (Emmanuel Arias) in branch 'master':
      bpo-38260: Add Docs on asyncio.run (GH-16337)
      17deb16

    5. miss-islington commented on Sep 25, 2019

      @miss-islington
      Contributor

      New changeset d366694 by Miss Islington (bot) in branch '3.7':
      bpo-38260: Add Docs on asyncio.run (GH-16337)
      d366694

    6. miss-islington commented on Sep 25, 2019

      @miss-islington
      Contributor

      New changeset 4633355 by Miss Islington (bot) in branch '3.8':
      bpo-38260: Add Docs on asyncio.run (GH-16337)
      4633355

    7. 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

      3.7 (EOL)docstopic-asynciotype-feature

      Projects

      No projects

        Milestone

        No milestone

        Relationships

        None yet

        Development

        No branches or pull requests

        Issue actions