Skip to content

avoid mixing pure python and C implementation of asyncio #129874

@kumaraditya303

Description

@kumaraditya303

Currently writing tests in asyncio is difficult because we have two separate implementations. The C implementation overrides the pure Python implementation at runtime as such testing python implementation is tricky. I propose that the pure python implementation should use the pure python versions of things like register_task and enter_task so that the it gets tested properly and it makes debugging easier. There should not really be a case where we mix both the implementations, both should be separate.

Linked PRs

Metadata

Metadata

Assignees

No one assigned

    Labels

    stdlibStandard Library Python modules in the Lib/ directorytopic-asyncio

    Projects

    Status

    Done

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions