GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — Remove legacy code for generator based coroutines in `asyncio` · Issue #102748 · python/cpython

Remove legacy code for generator based coroutines in asyncio #102748

New issue
Copy link
New issue
Copy link
Closed
Closed
Remove legacy code for generator based coroutines in asyncio#102748
Copy link
Labels
3.12only security fixesonly security fixestopic-asyncio

Description

@kumaraditya303
kumaraditya303
opened on Mar 16, 2023
Issue body actions

Generator based coroutines were long deprecated and removed and asyncio doesn't not supports it. There is some left over code for supporting it which can be removed now.

The first thing is this behavior of asyncio.iscoroutine which makes no sense now. I propose to remove this first.

import asyncio

def gen():
    yield 1

assert not asyncio.iscoroutine(gen()) # fails

Linked PRs

  • GH-102748: remove legacy support for generator based coroutines from asyncio.iscoroutine #102749

Activity

  1. kumaraditya303
    added
    topic-asyncio
    3.12only security fixesonly security fixes
    on Mar 16, 2023
  2. ezio-melotti
    added this to asyncioon Mar 16, 2023
  3. github-project-automation
    moved this to Todo in asyncioon Mar 16, 2023
  4. kumaraditya303
    added a commit that references this issue on Mar 16, 2023

    GH-102748: remove legacy support for generator based coroutines from …

    adaed17
  5. carljm
    added a commit that references this issue on Mar 17, 2023

    Merge branch 'main' into inlinecomp2

    1a8f4a0
  6. Fidget-Spinner
    added a commit that references this issue on Mar 27, 2023

    pythonGH-102748: remove legacy support for generator based coroutines…

    a123f26
  7. warsaw
    added a commit that references this issue on Apr 11, 2023

    pythonGH-102748: remove legacy support for generator based coroutines…

    ea7834f
  8. kumaraditya303 commented on Apr 19, 2023

    @kumaraditya303
    kumaraditya303
    on Apr 19, 2023
    ContributorAuthor
    More actions

    I can't anything else to be done in this currently, may reopen if needed later.

  9. kumaraditya303
    closed this as completedon Apr 19, 2023
  10. github-project-automation
    moved this from Todo to Done in asyncioon Apr 19, 2023
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.12only security fixesonly security fixestopic-asyncio

    Projects

    • asyncio
      Status
      Done
      Show more project fields

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

    You are visitor 01402503 — GeezerVison does not store the pages you look up.
    Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.