@@ -335,12 +335,6 @@ PyAPI_FUNC(void) PyBuffer_Release(Py_buffer *view); |
|
|
335 |
335 |
(Py_TYPE(obj)->tp_iternext != NULL && \ |
336 |
336 |
Py_TYPE(obj)->tp_iternext != &_PyObject_NextNotImplemented) |
337 |
337 |
|
338 |
|
-/* === Number Protocol ================================================== */ |
339 |
|
- |
340 |
|
-#define PyIndex_Check(obj) \ |
341 |
|
- (Py_TYPE(obj)->tp_as_number != NULL && \ |
342 |
|
- Py_TYPE(obj)->tp_as_number->nb_index != NULL) |
343 |
|
- |
344 |
338 |
/* === Sequence protocol ================================================ */ |
345 |
339 |
|
346 |
340 |
/* Assume tp_as_sequence and sq_item exist and that 'i' does not |