Searched refs:classdict (Results 1 – 7 of 7) sorted by relevance
/external/python/cpython3/Lib/ |
D | enum.py | 124 def __new__(metacls, cls, bases, classdict): argument 130 __new__, save_new, use_args = metacls._find_new_(classdict, member_type, 135 enum_members = {k: classdict[k] for k in classdict._member_names} 136 for name in classdict._member_names: 137 del classdict[name] 140 _order_ = classdict.pop('_order_', None) 149 if '__doc__' not in classdict: 150 classdict['__doc__'] = 'An enumeration.' 153 enum_class = super().__new__(metacls, cls, bases, classdict) 175 if '__reduce_ex__' not in classdict: [all …]
|
/external/python/cpython2/Lib/test/ |
D | test_pyclbr.py | 70 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/ |
D | test_pyclbr.py | 65 classdict = oclass.__dict__ 68 if (not isinstance(classdict[name], ClassMethodType) or
|
D | test_enum.py | 1010 def __new__(metacls, cls, bases, classdict): argument 1011 temp = type(classdict)() 1012 names = set(classdict._member_names) 1014 for k in classdict._member_names: 1015 v = classdict[k] 1022 for k, v in classdict.items():
|
/external/python/cpython2/Objects/ |
D | object.c | 1691 PyObject *classdict; in merge_class_dict() local 1698 classdict = PyObject_GetAttrString(aclass, "__dict__"); in merge_class_dict() 1699 if (classdict == NULL) in merge_class_dict() 1702 int status = PyDict_Update(dict, classdict); in merge_class_dict() 1703 Py_DECREF(classdict); in merge_class_dict()
|
/external/python/cpython3/Objects/ |
D | typeobject.c | 3169 PyObject *classdict; in merge_class_dict() local 3177 classdict = _PyObject_GetAttrId(aclass, &PyId___dict__); in merge_class_dict() 3178 if (classdict == NULL) in merge_class_dict() 3181 int status = PyDict_Update(dict, classdict); in merge_class_dict() 3182 Py_DECREF(classdict); in merge_class_dict()
|
/external/python/cpython3/Tools/clinic/ |
D | clinic.py | 2209 def __init__(cls, name, bases, classdict): argument 2953 def __init__(cls, name, bases, classdict): argument
|