@@ -190,7 +190,7 @@ Object Protocol
190
190
191
191
.. c :function :: PyObject* PyObject_Repr (PyObject *o)
192
192
193
- .. index :: builtin: repr
193
+ .. index :: pair: built-in function; repr
194
194
195
195
Compute a string representation of object *o *. Returns the string
196
196
representation on success, ``NULL `` on failure. This is the equivalent of the
@@ -202,7 +202,7 @@ Object Protocol
202
202
203
203
.. c :function :: PyObject* PyObject_ASCII (PyObject *o)
204
204
205
- .. index :: builtin: ascii
205
+ .. index :: pair: built-in function; ascii
206
206
207
207
As :c:func: `PyObject_Repr `, compute a string representation of object *o *, but
208
208
escape the non-ASCII characters in the string returned by
@@ -227,7 +227,7 @@ Object Protocol
227
227
228
228
.. c :function :: PyObject* PyObject_Bytes (PyObject *o)
229
229
230
- .. index :: builtin: bytes
230
+ .. index :: pair: built-in function; bytes
231
231
232
232
Compute a bytes representation of object *o *. ``NULL `` is returned on
233
233
failure and a bytes object on success. This is equivalent to the Python
@@ -278,7 +278,7 @@ Object Protocol
278
278
279
279
.. c:function:: Py_hash_t PyObject_Hash(PyObject *o)
280
280
281
- .. index :: builtin: hash
281
+ .. index :: pair: built-in function; hash
282
282
283
283
Compute and return the hash value of an object *o *. On failure, return ``-1 ``.
284
284
This is the equivalent of the Python expression ``hash(o) ``.
@@ -312,7 +312,7 @@ Object Protocol
312
312
313
313
.. c :function :: PyObject* PyObject_Type (PyObject *o)
314
314
315
- .. index :: builtin: type
315
+ .. index :: pair: built-in function; type
316
316
317
317
When *o * is non-``NULL ``, returns a type object corresponding to the object type
318
318
of object *o *. On failure, raises :exc: `SystemError ` and returns ``NULL ``. This
@@ -332,7 +332,7 @@ Object Protocol
332
332
.. c :function :: Py_ssize_t PyObject_Size (PyObject *o)
333
333
Py_ssize_t PyObject_Length(PyObject *o)
334
334
335
- .. index :: builtin: len
335
+ .. index :: pair: built-in function; len
336
336
337
337
Return the length of object *o *. If the object *o * provides either the sequence
338
338
and mapping protocols, the sequence length is returned. On error, ``-1 `` is
0 commit comments