Home
last modified time | relevance | path

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

/external/python/cpython2/Python/
DPython-ast.c286 static PyTypeObject *Slice_type; variable
819 Slice_type = make_type("Slice", slice_type, Slice_fields, 3); in init_types()
820 if (!Slice_type) return 0; in init_types()
2975 result = PyType_GenericNew(Slice_type, NULL, NULL); in ast2obj_slice()
6006 isinstance = PyObject_IsInstance(obj, (PyObject*)Slice_type); in obj2ast_slice()
6863 if (PyDict_SetItemString(d, "Slice", (PyObject*)Slice_type) < 0) return; in init_ast()
/external/python/cpython3/Python/
DPython-ast.c370 static PyTypeObject *Slice_type; variable
1006 Slice_type = make_type("Slice", slice_type, Slice_fields, 3); in init_types()
1007 if (!Slice_type) return 0; in init_types()
3519 result = PyType_GenericNew(Slice_type, NULL, NULL); in ast2obj_slice()
7199 isinstance = PyObject_IsInstance(obj, (PyObject*)Slice_type); in obj2ast_slice()
8285 if (PyDict_SetItemString(d, "Slice", (PyObject*)Slice_type) < 0) return in PyInit__ast()