@@ -240,7 +240,7 @@ is considered sufficient for this determination.
240240 of the Python expression ``callable_object(*args) ``.
241241
242242
243- .. c :function :: PyObject* PyObject_CallFunction (PyObject *callable, char *format, ...)
243+ .. c :function :: PyObject* PyObject_CallFunction (PyObject *callable, const char *format, ...)
244244
245245 Call a callable Python object *callable *, with a variable number of C arguments.
246246 The C arguments are described using a :c:func: `Py_BuildValue ` style format
@@ -250,8 +250,11 @@ is considered sufficient for this determination.
250250 pass :c:type: `PyObject \* ` args, :c:func: `PyObject_CallFunctionObjArgs ` is a
251251 faster alternative.
252252
253+ .. versionchanged :: 3.4
254+ The type of *format * was changed from ``char * ``.
253255
254- .. c :function :: PyObject* PyObject_CallMethod (PyObject *o, char *method, char *format, ...)
256+
257+ .. c :function :: PyObject* PyObject_CallMethod (PyObject *o, const char *method, const char *format, ...)
255258
256259 Call the method named *method * of object *o * with a variable number of C
257260 arguments. The C arguments are described by a :c:func: `Py_BuildValue ` format
@@ -261,6 +264,9 @@ is considered sufficient for this determination.
261264 Note that if you only pass :c:type: `PyObject \* ` args,
262265 :c:func: `PyObject_CallMethodObjArgs ` is a faster alternative.
263266
267+ .. versionchanged :: 3.4
268+ The types of *method * and *format * were changed from ``char * ``.
269+
264270
265271.. c :function :: PyObject* PyObject_CallFunctionObjArgs (PyObject *callable, ..., NULL)
266272
@@ -342,6 +348,15 @@ is considered sufficient for this determination.
342348 returned. This is the equivalent to the Python expression ``len(o) ``.
343349
344350
351+ .. c :function :: Py_ssize_t PyObject_LengthHint (PyObject *o, Py_ssize_t default)
352+
353+ Return an estimated length for the object *o *. First trying to return its
354+ actual length, then an estimate using ``__length_hint__ ``, and finally
355+ returning the default value. On error ``-1 `` is returned. This is the
356+ equivalent to the Python expression ``operator.length_hint(o, default) ``.
357+
358+ .. versionadded :: 3.4
359+
345360.. c :function :: PyObject* PyObject_GetItem (PyObject *o, PyObject *key)
346361
347362 Return element of *o * corresponding to the object *key * or *NULL * on failure.
0 commit comments