Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Wording
  • Loading branch information
erlend-aasland committed Jun 23, 2023
commit 1baa415d6a75dc5262c0856ea4355f05607b4f4d
4 changes: 2 additions & 2 deletions developer-workflow/c-api.rst
Original file line number Diff line number Diff line change
Expand Up @@ -109,8 +109,8 @@ Guidelines for expanding/changing the public API
- Make sure the ownership rules and lifetimes of all applicable struct
fields, arguments and return values are well defined.

- Functions that return a ``PyObject *`` pointer must return a valid pointer
on success and ``NULL`` with an exception raised on error.
- Functions returning ``PyObject *`` must return a valid pointer on success
Comment thread
erlend-aasland marked this conversation as resolved.
Outdated
and ``NULL`` with an exception raised on error.
Most other API must return ``-1`` with an exception raised on error,
and ``0`` on success.

Expand Down