Lines Matching refs:ns_dict
9 PyObject *ns_dict; member
14 {"__dict__", T_OBJECT, offsetof(_PyNamespaceObject, ns_dict), READONLY},
30 ns->ns_dict = PyDict_New(); in namespace_new()
31 if (ns->ns_dict == NULL) { in namespace_new()
53 return PyDict_Update(ns->ns_dict, kwds); in namespace_init()
61 Py_CLEAR(ns->ns_dict); in namespace_dealloc()
87 d = ((_PyNamespaceObject *)ns)->ns_dict; in namespace_repr()
149 Py_VISIT(ns->ns_dict); in namespace_traverse()
157 Py_CLEAR(ns->ns_dict); in namespace_clear()
167 return PyObject_RichCompare(((_PyNamespaceObject *)self)->ns_dict, in namespace_richcompare()
168 ((_PyNamespaceObject *)other)->ns_dict, op); in namespace_richcompare()
183 result = PyTuple_Pack(3, (PyObject *)Py_TYPE(ns), args, ns->ns_dict); in namespace_reduce()
237 offsetof(_PyNamespaceObject, ns_dict), /* tp_dictoffset */
254 if (PyDict_Update(((_PyNamespaceObject *)ns)->ns_dict, kwds) != 0) { in _PyNamespace_New()