Skip to content

PyModule_SetDocString documentation doesn't describe the return value or success or failure conditions #144257

@ngoldbaum

Description

@ngoldbaum

Documentation

See https://docs.python.org/3.15/c-api/module.html#c.PyModule_SetDocString. It should say it returns -1 on failure and 0 on success. Failure can happen if creating a Python string from the C string docstring fails or if setting the __doc__ attribute on the module object fails.

Linked PRs

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    Status

    Todo

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions