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 — Deprecate `asyncio.iscoroutinefunction` · Issue #122858 · python/cpython

Deprecate asyncio.iscoroutinefunction #122858

New issue
Copy link
New issue
Copy link
Closed
Closed
Deprecate asyncio.iscoroutinefunction#122858
Copy link
Labels
3.14bugs and security fixesbugs and security fixestopic-asyncio

Description

@kumaraditya303
kumaraditya303
opened on Aug 9, 2024
Issue body actions

asyncio.iscoroutinefunction should be deprecated in favor of inspect.iscoroutinefunction, we don't need two different functions to do the same thing. I propose to deprecate asyncio.iscoroutinefunction because IMO these introspection functions don't belong to asyncio but more to inspect module. It will be deprecated in Python 3.14 and scheduled for removal in Python 3.16.

Linked PRs

  • gh-122858: Deprecate asyncio.iscoroutinefunction #122875
Reacted by Kirill Podoprigora, Wulian233 and Elnazar Ulanbek uulu

Activity

  1. kumaraditya303
    added
    topic-asyncio
    3.14bugs and security fixesbugs and security fixes
    on Aug 9, 2024
  2. github-project-automation
    added this to asyncioon Aug 9, 2024
  3. github-project-automation
    moved this to Todo in asyncioon Aug 9, 2024
  4. Wulian233 commented on Aug 9, 2024

    @Wulian233
    Wulian233
    on Aug 9, 2024
    Contributor
    More actions

    See #94923 , maybe you can review it :)

  5. Eclips4 commented on Aug 9, 2024

    @Eclips4
    Eclips4
    on Aug 9, 2024
    Member
    More actions

    Looks like an duplicate of #94912

  6. kumaraditya303 commented on Aug 9, 2024

    @kumaraditya303
    kumaraditya303
    on Aug 9, 2024
    ContributorAuthor
    More actions

    Looks like an duplicate of #94912

    No it isn't, in this issue we are just deprecating it not making an alias.

    Reacted by Kirill Podoprigora and Wulian233
  7. kumaraditya303
    added a commit that references this issue on Aug 11, 2024

    gh-122858: Deprecate `asyncio.iscoroutinefunction` (#122875)

    bc9d92c
  8. kumaraditya303
    closed this as completedon Aug 11, 2024
  9. github-project-automation
    moved this from Todo to Done in asyncioon Aug 11, 2024
  10. blhsing
    added a commit that references this issue on Aug 22, 2024

    pythongh-122858: Deprecate `asyncio.iscoroutinefunction` (python#122875)

    2e65db5
  11. illia-v commented on Nov 9, 2024

    @illia-v
    illia-v
    on Nov 9, 2024
    Contributor
    More actions

    If you get the deprecation error and want to support Python < 3.12, you may need to still use asyncio.iscoroutinefunction conditionally for backward compatibility because before #94050 merged into 3.12 (and only some 3.10 and 3.11 releases) the functions hadn't been equivalent

    if sys.version_info >= (3, 12):
        iscoroutinefunction = inspect.iscoroutinefunction
    else:
        iscoroutinefunction = asyncio.iscoroutinefunction
  12. birdcar
    added 2 commits that reference this issue on Jan 13, 2026

    Replace asyncio.iscoroutinefunction with inspect

    b41d8c5

    Replace asyncio.iscoroutinefunction with inspect

    787a6db
  13. gjtorikian
    added a commit that references this issue on Jan 22, 2026

    Implement the remaining Audit Logs functionality (#515)

    4483636
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.14bugs and security fixesbugs and 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.