Lines Matching refs:dict
517 Py_DECREF(name); /* module dict has still a reference */
553 Py_DECREF(fileobj); /* module dict has still a reference */
670 PyObject *dict = self->md_dict;
671 if (dict == NULL) {
672 dict = PyDict_New();
673 if (dict == NULL)
675 self->md_dict = dict;
677 if (module_init_dict(self, dict, name, doc) < 0)
853 PyObject *dict = PyObject_GetAttr(self, &_Py_ID(__dict__));
855 if (dict != NULL) {
856 if (PyDict_Check(dict)) {
857 PyObject *dirfunc = PyDict_GetItemWithError(dict, &_Py_ID(__dir__));
862 result = PyDict_Keys(dict);
870 Py_XDECREF(dict);
883 PyObject *dict = PyObject_GetAttr((PyObject *)m, &_Py_ID(__dict__));
885 if ((dict == NULL) || !PyDict_Check(dict)) {
887 Py_XDECREF(dict);
893 if (PyDict_Contains(dict, &_Py_ID(__annotations__))) {
894 annotations = PyDict_GetItemWithError(dict, &_Py_ID(__annotations__));
907 dict, &_Py_ID(__annotations__), annotations);
913 Py_DECREF(dict);
921 PyObject *dict = PyObject_GetAttr((PyObject *)m, &_Py_ID(__dict__));
923 if ((dict == NULL) || !PyDict_Check(dict)) {
930 ret = PyDict_SetItem(dict, &_Py_ID(__annotations__), value);
935 if (!PyDict_Contains(dict, &_Py_ID(__annotations__))) {
940 ret = PyDict_DelItem(dict, &_Py_ID(__annotations__));
943 Py_XDECREF(dict);