Visitar URL original
gh-64658: Expand Argument Clinic return converter docs by erlend-aasland 路 Pull Request #104175 路 python/cpython 路 GitHub
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
Further amendments
  • Loading branch information
erlend-aasland committed May 4, 2023
commit c361abd2e4357e450af79b2fbf63e72b6315d26c
7 changes: 2 additions & 5 deletions Doc/howto/clinic.rst
Original file line number Diff line number Diff line change
Expand Up @@ -1068,18 +1068,15 @@ Currently Argument Clinic supports only a few return converters:
bool
double
float
init
int
long
Py_ssize_t
size_t
unsigned int
unsigned long

None of these take parameters. For the first three, return -1 to indicate
error.
The ``init`` converter is a special return converter for ``__init__``
functions.
None of these take parameters.
Return ``-1`` to indicate error.

To see all the return converters Argument Clinic supports, along with
their parameters (if any),
Expand Down