@@ -257,7 +257,7 @@ Object Protocol
257
257
258
258
Call a callable Python object *callable * without any arguments.
259
259
260
- Returns the result of the call on success, or raise an exception and return
260
+ Return the result of the call on success, or raise an exception and return
261
261
*NULL * on failure.
262
262
263
263
.. versionadded :: 3.9
@@ -271,7 +271,8 @@ Object Protocol
271
271
*args * must not be *NULL *, use an empty tuple if no arguments are needed.
272
272
If no named arguments are needed, *kwargs * can be *NULL *.
273
273
274
- Returns the result of the call on success, or *NULL * on failure.
274
+ Return the result of the call on success, or raise an exception and return
275
+ *NULL * on failure.
275
276
276
277
This is the equivalent of the Python expression:
277
278
``callable(*args, **kwargs) ``.
@@ -282,7 +283,8 @@ Object Protocol
282
283
Call a callable Python object *callable *, with arguments given by the
283
284
tuple *args *. If no arguments are needed, then *args * can be *NULL *.
284
285
285
- Returns the result of the call on success, or *NULL * on failure.
286
+ Return the result of the call on success, or raise an exception and return
287
+ *NULL * on failure.
286
288
287
289
This is the equivalent of the Python expression: ``callable(*args) ``.
288
290
@@ -293,7 +295,8 @@ Object Protocol
293
295
The C arguments are described using a :c:func: `Py_BuildValue ` style format
294
296
string. The format can be *NULL *, indicating that no arguments are provided.
295
297
296
- Returns the result of the call on success, or *NULL * on failure.
298
+ Return the result of the call on success, or raise an exception and return
299
+ *NULL * on failure.
297
300
298
301
This is the equivalent of the Python expression: ``callable(*args) ``.
299
302
@@ -312,7 +315,8 @@ Object Protocol
312
315
313
316
The format can be *NULL *, indicating that no arguments are provided.
314
317
315
- Returns the result of the call on success, or *NULL * on failure.
318
+ Return the result of the call on success, or raise an exception and return
319
+ *NULL * on failure.
316
320
317
321
This is the equivalent of the Python expression:
318
322
``obj.name(arg1, arg2, ...) ``.
@@ -330,7 +334,8 @@ Object Protocol
330
334
:c:type: `PyObject\* ` arguments. The arguments are provided as a variable number
331
335
of parameters followed by *NULL *.
332
336
333
- Returns the result of the call on success, or *NULL * on failure.
337
+ Return the result of the call on success, or raise an exception and return
338
+ *NULL * on failure.
334
339
335
340
This is the equivalent of the Python expression:
336
341
``callable(arg1, arg2, ...) ``.
@@ -341,7 +346,9 @@ Object Protocol
341
346
Calls a method of the Python object *obj *, where the name of the method is given as a
342
347
Python string object in *name *. It is called with a variable number of
343
348
:c:type: `PyObject\* ` arguments. The arguments are provided as a variable number
344
- of parameters followed by *NULL *. Returns the result of the call on success, or
349
+ of parameters followed by *NULL *.
350
+
351
+ Return the result of the call on success, or raise an exception and return
345
352
*NULL * on failure.
346
353
347
354
@@ -365,7 +372,8 @@ Object Protocol
365
372
*kwnames* must contain only objects of type ``str`` (not a subclass),
366
373
and all keys must be unique.
367
374
368
- Return the result of the call on success, or *NULL* on failure.
375
+ Return the result of the call on success, or raise an exception and return
376
+ *NULL* on failure.
369
377
370
378
This uses the vectorcall protocol if the callable supports it;
371
379
otherwise, the arguments are converted to use
0 commit comments