Home
last modified time | relevance | path

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

/aosp_15_r20/external/python/cpython3/Modules/
D_json.c19 PyObject *PyEncoderType; member
1830 state->PyEncoderType = PyType_FromSpec(&PyEncoderType_spec); in _json_exec()
1831 if (state->PyEncoderType == NULL) { in _json_exec()
1834 Py_INCREF(state->PyEncoderType); in _json_exec()
1835 if (PyModule_AddObject(module, "make_encoder", state->PyEncoderType) < 0) { in _json_exec()
1836 Py_DECREF(state->PyEncoderType); in _json_exec()
1848 Py_VISIT(state->PyEncoderType); in _jsonmodule_traverse()
1857 Py_CLEAR(state->PyEncoderType); in _jsonmodule_clear()
/aosp_15_r20/external/python/cpython2/Modules/
D_json.c27 #define PyEncoder_Check(op) PyObject_TypeCheck(op, &PyEncoderType)
28 #define PyEncoder_CheckExact(op) (Py_TYPE(op) == &PyEncoderType)
31 static PyTypeObject PyEncoderType; variable
2345 PyTypeObject PyEncoderType = { variable
2408 if (PyType_Ready(&PyEncoderType) < 0) in init_json()
2415 Py_INCREF((PyObject*)&PyEncoderType); in init_json()
2416 PyModule_AddObject(m, "make_encoder", (PyObject*)&PyEncoderType); in init_json()