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.py166 def __prepare__(metacls, cls, bases, **kwds): argument
168 metacls._check_for_existing_members(cls, bases)
173 member_type, first_enum = metacls._get_mixins_(cls, bases)
180 def __new__(metacls, cls, bases, classdict, **kwds): argument
191 member_type, first_enum = metacls._get_mixins_(cls, bases)
192 __new__, save_new, use_args = metacls._find_new_(
215 enum_class = super().__new__(metacls, cls, bases, classdict, **kwds)
495 metacls = cls.__class__
498 classdict = metacls.__prepare__(class_name, bases)
518 enum_class = metacls.__new__(metacls, class_name, bases, classdict)
/external/python/cpython3/Lib/test/
Dtest_enum.py1205 def __new__(metacls, cls, bases, classdict): argument
1221 return super(auto_enum, metacls).__new__(
1222 metacls, cls, bases, temp)
Dtest_grammar.py412 def __prepare__(metacls, name, bases, **kwds): argument
/external/python/cpython2/Doc/reference/
Ddatamodel.rst1755 class metacls(type):
1757 dict['foo'] = 'metacls was here'