Home
last modified time | relevance | path

Searched refs:classdict (Results 1 – 7 of 7) sorted by relevance

/external/python/cpython3/Lib/
Denum.py135 def __new__(metacls, cls, bases, classdict): argument
142 classdict.setdefault('_ignore_', []).append('_ignore_')
143 ignore = classdict['_ignore_']
145 classdict.pop(key, None)
147 __new__, save_new, use_args = metacls._find_new_(classdict, member_type,
152 enum_members = {k: classdict[k] for k in classdict._member_names}
153 for name in classdict._member_names:
154 del classdict[name]
157 _order_ = classdict.pop('_order_', None)
166 if '__doc__' not in classdict:
[all …]
/external/python/cpython2/Lib/test/
Dtest_pyclbr.py70 classdict = oclass.__dict__
72 if not isinstance(classdict[name], StaticMethodType):
78 if (not isinstance(classdict[name], ClassMethodType) or
82 if not isinstance(classdict[name], FunctionType):
/external/python/cpython3/Lib/test/
Dtest_pyclbr.py70 classdict = oclass.__dict__
73 if (not isinstance(classdict[name], ClassMethodType) or
Dtest_enum.py1036 def __new__(metacls, cls, bases, classdict): argument
1037 temp = type(classdict)()
1038 names = set(classdict._member_names)
1040 for k in classdict._member_names:
1041 v = classdict[k]
1048 for k, v in classdict.items():
/external/python/cpython2/Objects/
Dobject.c1696 PyObject *classdict; in merge_class_dict() local
1703 classdict = PyObject_GetAttrString(aclass, "__dict__"); in merge_class_dict()
1704 if (classdict == NULL) in merge_class_dict()
1707 int status = PyDict_Update(dict, classdict); in merge_class_dict()
1708 Py_DECREF(classdict); in merge_class_dict()
/external/python/cpython3/Objects/
Dtypeobject.c3359 PyObject *classdict; in merge_class_dict() local
3367 classdict = _PyObject_GetAttrId(aclass, &PyId___dict__); in merge_class_dict()
3368 if (classdict == NULL) in merge_class_dict()
3371 int status = PyDict_Update(dict, classdict); in merge_class_dict()
3372 Py_DECREF(classdict); in merge_class_dict()
/external/python/cpython3/Tools/clinic/
Dclinic.py2237 def __init__(cls, name, bases, classdict): argument
3005 def __init__(cls, name, bases, classdict): argument