Home
last modified time | relevance | path

Searched refs:metacls (Results 1 – 6 of 6) sorted by relevance

/external/python/enum34/enum/
D__init__.py150 def __prepare__(metacls, cls, bases): argument
153 def __new__(metacls, cls, bases, classdict): argument
164 member_type, first_enum = metacls._get_mixins_(bases)
165 __new__, save_new, use_args = metacls._find_new_(classdict, member_type,
200 enum_class = super(EnumMeta, metacls).__new__(metacls, cls, bases, classdict)
441 metacls = cls.__class__
446 classdict = metacls.__prepare__(class_name, bases)
467 enum_class = metacls.__new__(metacls, class_name, bases, classdict)
Dtest.py1186 def __new__(metacls, cls, bases, classdict): argument
1205 return super(auto_enum, metacls).__new__(
1206 metacls, cls, bases, temp)
/external/python/cpython3/Lib/
Denum.py125 def __prepare__(metacls, cls, bases): argument
127 metacls._check_for_existing_members(cls, bases)
131 member_type, first_enum = metacls._get_mixins_(cls, bases)
136 def __new__(metacls, cls, bases, classdict): argument
147 member_type, first_enum = metacls._get_mixins_(cls, bases)
148 __new__, save_new, use_args = metacls._find_new_(classdict, member_type,
171 enum_class = super().__new__(metacls, cls, bases, classdict)
404 metacls = cls.__class__
407 classdict = metacls.__prepare__(class_name, bases)
427 enum_class = metacls.__new__(metacls, class_name, bases, classdict)
/external/python/cpython3/Lib/test/
Dtest_enum.py1133 def __new__(metacls, cls, bases, classdict): argument
1148 return super(auto_enum, metacls).__new__(
1149 metacls, cls, bases, temp)
Dtest_grammar.py375 def __prepare__(metacls, name, bases, **kwds): argument
/external/python/cpython2/Doc/reference/
Ddatamodel.rst1755 class metacls(type):
1757 dict['foo'] = 'metacls was here'