Skip to content

Commit 3de3972

Browse files
pythongh-64658: Amend Argument Clinic return converter docs
1 parent b0ce2db commit 3de3972

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

Diff for: Doc/howto/clinic.rst

+5-4
Original file line numberDiff line numberDiff line change
@@ -1069,16 +1069,17 @@ Currently Argument Clinic supports only a few return converters:
10691069
int
10701070
unsigned int
10711071
long
1072-
unsigned int
1072+
unsigned long
10731073
size_t
10741074
Py_ssize_t
10751075
float
10761076
double
1077-
DecodeFSDefault
1077+
__init__
10781078
10791079
None of these take parameters. For the first three, return -1 to indicate
1080-
error. For ``DecodeFSDefault``, the return type is ``const char *``; return a ``NULL``
1081-
pointer to indicate an error.
1080+
error.
1081+
The ``__init__`` converter is a special return converter for ``__init__``
1082+
functions.
10821083

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

0 commit comments

Comments
 (0)