Skip to content

Minor syntax issue in asyncio howto guide example (strftime quote mismatch inside f-string) #140174

@ragul-kachiappan-techjays

Description

Documentation

In the how to guide for asyncio titled A Conceptual Overview of asyncio, there’s a small syntax error in one of the code examples under the main() coroutine section.

    print(
        "Beginning asynchronous sleep at time: "
        f"{datetime.datetime.now().strftime("%H:%M:%S")}."
    )

Common mistake of nested double quotes inside strftime() within f-string. Could change it to single quotes.
Need to fix in L512 and L517.

Metadata

Metadata

Assignees

No one assigned

    Labels

    docsDocumentation in the Doc dir

    Projects

    Status

    Todo

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions