Home
last modified time | relevance | path

Searched refs:get_indices (Results 1 – 2 of 2) sorted by relevance

/external/python/cpython2/Lib/test/
Dtest_capi.py108 self.assertEqual(_testcapi.get_indices(slice(10L, 20, 1), 100), (0, 10, 20, 1))
109 self.assertEqual(_testcapi.get_indices(slice(10.1, 20, 1), 100), None)
110 self.assertEqual(_testcapi.get_indices(slice(10, 20L, 1), 100), (0, 10, 20, 1))
111 self.assertEqual(_testcapi.get_indices(slice(10, 20.1, 1), 100), None)
113 self.assertEqual(_testcapi.get_indices(slice(10L, 20, 1L), 100), (0, 10, 20, 1))
114 self.assertEqual(_testcapi.get_indices(slice(10.1, 20, 1L), 100), None)
115 self.assertEqual(_testcapi.get_indices(slice(10, 20L, 1L), 100), (0, 10, 20, 1))
116 self.assertEqual(_testcapi.get_indices(slice(10, 20.1, 1L), 100), None)
/external/python/cpython2/Modules/
D_testcapimodule.c1563 get_indices(PyObject *self, PyObject *args) in get_indices() function
2690 {"get_indices", get_indices, METH_VARARGS},