Skip to content

Commit ec5c728

Browse files
committed
1 parent bf96705 commit ec5c728

File tree

1 file changed

+5
-8
lines changed

1 file changed

+5
-8
lines changed

development-tools/clinic.rst

Lines changed: 5 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1495,18 +1495,15 @@ You can still use a self converter, a return converter, and specify
14951495
a *type* argument to the object converter for :c:macro:`METH_O`.
14961496

14971497

1498-
How to convert variadic arguments functions
1499-
-------------------------------------------
1500-
1501-
Some functions can be called with an arbitrary number of arguments.
1502-
These arguments will be wrapped up in a tuple.
1498+
How to convert var-positional parameter functions
1499+
-------------------------------------------------
15031500

1504-
To convert a function to accept variadic arguments,
1505-
add a ``*`` in front of the parameter name just like Python,
1501+
To convert a :term:`var-positional` parameter function,
1502+
prepending the parameter name with ``*`` ,
15061503
and the parameter should use the ``object`` converter::
15071504

15081505
/*[clinic input]
1509-
vararg_sample
1506+
var_positional_sample
15101507

15111508
foo: int
15121509
*args: object

0 commit comments

Comments
 (0)