Skip to content

Argument Clinic: param docstrings are not checked for non-ascii chars #107559

@erlend-aasland

Description

@erlend-aasland

Also, the warning message is a little bit strange: "Non-ascii character appear in docstring"

Suggesting to change the warning message to "Non-ascii characters are not allowed in docstrings: {offending char!r}", and move the check from docstring_for_c_string() to docstring_append(). The former is only called for function docstrings; the latter is called both for function and parameter docstrings.

Linked PRs

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions