Searched refs:PyEncoderType (Results 1 – 2 of 2) sorted by relevance
19 PyObject *PyEncoderType; member1830 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()
27 #define PyEncoder_Check(op) PyObject_TypeCheck(op, &PyEncoderType)28 #define PyEncoder_CheckExact(op) (Py_TYPE(op) == &PyEncoderType)31 static PyTypeObject PyEncoderType; variable2345 PyTypeObject PyEncoderType = { variable2408 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()