Searched refs:ann_dict (Results 1 – 3 of 3) sorted by relevance
/third_party/python/Objects/ |
D | funcobject.c | 232 PyObject *ann_dict = PyDict_New(); in func_get_annotation_dict() local 233 if (ann_dict == NULL) { in func_get_annotation_dict() 240 int err = PyDict_SetItem(ann_dict, in func_get_annotation_dict() 248 Py_SETREF(op->func_annotations, ann_dict); in func_get_annotation_dict()
|
/third_party/python/Python/ |
D | pylifecycle.c | 2036 PyObject *m, *d, *loader, *ann_dict; in add_main_module() local 2042 ann_dict = PyDict_New(); in add_main_module() 2043 if ((ann_dict == NULL) || in add_main_module() 2044 (PyDict_SetItemString(d, "__annotations__", ann_dict) < 0)) { in add_main_module() 2047 Py_DECREF(ann_dict); in add_main_module()
|
D | ceval.c | 3270 PyObject *ann_dict; in _PyEval_EvalFrameDefault() local 3278 ann_dict = _PyDict_GetItemIdWithError(f->f_locals, in _PyEval_EvalFrameDefault() 3280 if (ann_dict == NULL) { in _PyEval_EvalFrameDefault() 3285 ann_dict = PyDict_New(); in _PyEval_EvalFrameDefault() 3286 if (ann_dict == NULL) { in _PyEval_EvalFrameDefault() 3290 &PyId___annotations__, ann_dict); in _PyEval_EvalFrameDefault() 3291 Py_DECREF(ann_dict); in _PyEval_EvalFrameDefault() 3303 ann_dict = PyObject_GetItem(f->f_locals, ann_str); in _PyEval_EvalFrameDefault() 3304 if (ann_dict == NULL) { in _PyEval_EvalFrameDefault() 3309 ann_dict = PyDict_New(); in _PyEval_EvalFrameDefault() [all …]
|