Skip to content

An error in python Exception Handling doc. #115799

@qqwqqw689

Description

@qqwqqw689

link

void PyErr_FormatUnraisable(const char *format, ...)
Similar to PyErr_WriteUnraisable(), but the format and subsequent parameters help format the warning message; they have the same meaning and values as in PyUnicode_FromFormat(). PyErr_WriteUnraisable(obj) is roughtly equivalent to PyErr_FormatUnraisable("Exception ignored in: %R, obj). If format is NULL, only the traceback is printed.

I think the PyErr_FormatUnraisable("Exception ignored in: %R, obj) should be PyErr_FormatUnraisable("Exception ignored in: %R", obj).

Linked PRs

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions