Skip to content

"Lazy Features vs Eager Tasks" section contains wrong info #44

@Migorithm

Description

@Migorithm

In the section comparing C# / JavaScript / Python vs. Go / Rust, the text states that creating a Python coroutine executes it immediately.

This is incorrect. In Python, simply calling an async def function does not execute a single line of code inside that function. Instead, it merely creates and returns a coroutine object. Execution only begins when that coroutine is explicitly yielded to the event loop (for example, by using await or asyncio.create_task()).

Could we update this section to reflect that Python coroutines are strictly unexecuted objects upon creation?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions