Skip to content

Incorrectly formatted error message in asyncio.proactor_events.sendto() #160596

Open

Description

@aisk

Bug report

It should use % instead of ,, and the wording could also be adjusted.

raise TypeError('data argument must be bytes-like object (%r)',
type(data))

I'm working on a PR to fix this.

CPython versions tested on:

CPython main branch

Operating systems tested on:

No response

Linked PRs

Activity

  1. added
    type-bugAn unexpected behavior, bug, or error
    on Oct 24, 2026
  2. added a commit that references this issue on Oct 24, 2026
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

    stdlibStandard Library Python modules in the Lib/ directorytopic-asynciotype-bugAn unexpected behavior, bug, or error

    Projects

    • Status
      Todo

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions