@@ -261,7 +261,8 @@ Object Protocol
261
261
*args * must not be *NULL *, use an empty tuple if no arguments are needed.
262
262
If no named arguments are needed, *kwargs * can be *NULL *.
263
263
264
- Returns the result of the call on success, or *NULL * on failure.
264
+ Return the result of the call on success, or raise an exception and return
265
+ *NULL * on failure.
265
266
266
267
This is the equivalent of the Python expression:
267
268
``callable(*args, **kwargs) ``.
@@ -272,7 +273,8 @@ Object Protocol
272
273
Call a callable Python object *callable *, with arguments given by the
273
274
tuple *args *. If no arguments are needed, then *args * can be *NULL *.
274
275
275
- Returns the result of the call on success, or *NULL * on failure.
276
+ Return the result of the call on success, or raise an exception and return
277
+ *NULL * on failure.
276
278
277
279
This is the equivalent of the Python expression: ``callable(*args) ``.
278
280
@@ -283,7 +285,8 @@ Object Protocol
283
285
The C arguments are described using a :c:func: `Py_BuildValue ` style format
284
286
string. The format can be *NULL *, indicating that no arguments are provided.
285
287
286
- Returns the result of the call on success, or *NULL * on failure.
288
+ Return the result of the call on success, or raise an exception and return
289
+ *NULL * on failure.
287
290
288
291
This is the equivalent of the Python expression: ``callable(*args) ``.
289
292
@@ -302,7 +305,8 @@ Object Protocol
302
305
303
306
The format can be *NULL *, indicating that no arguments are provided.
304
307
305
- Returns the result of the call on success, or *NULL * on failure.
308
+ Return the result of the call on success, or raise an exception and return
309
+ *NULL * on failure.
306
310
307
311
This is the equivalent of the Python expression:
308
312
``obj.name(arg1, arg2, ...) ``.
@@ -320,7 +324,8 @@ Object Protocol
320
324
:c:type: `PyObject\* ` arguments. The arguments are provided as a variable number
321
325
of parameters followed by *NULL *.
322
326
323
- Returns the result of the call on success, or *NULL * on failure.
327
+ Return the result of the call on success, or raise an exception and return
328
+ *NULL * on failure.
324
329
325
330
This is the equivalent of the Python expression:
326
331
``callable(arg1, arg2, ...) ``.
@@ -331,7 +336,9 @@ Object Protocol
331
336
Calls a method of the Python object *obj *, where the name of the method is given as a
332
337
Python string object in *name *. It is called with a variable number of
333
338
:c:type: `PyObject\* ` arguments. The arguments are provided as a variable number
334
- of parameters followed by *NULL *. Returns the result of the call on success, or
339
+ of parameters followed by *NULL *.
340
+
341
+ Return the result of the call on success, or raise an exception and return
335
342
*NULL * on failure.
336
343
337
344
@@ -355,7 +362,8 @@ Object Protocol
355
362
*kwnames* must contain only objects of type ``str`` (not a subclass),
356
363
and all keys must be unique.
357
364
358
- Return the result of the call on success, or *NULL* on failure.
365
+ Return the result of the call on success, or raise an exception and return
366
+ *NULL* on failure.
359
367
360
368
This uses the vectorcall protocol if the callable supports it;
361
369
otherwise, the arguments are converted to use
0 commit comments