Home
last modified time | relevance | path

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

/external/python/cpython3/Lib/
Denum.py126 def __prepare__(metacls, cls, bases): argument
130 member_type, first_enum = metacls._get_mixins_(bases)
135 def __new__(metacls, cls, bases, classdict): argument
146 member_type, first_enum = metacls._get_mixins_(bases)
147 __new__, save_new, use_args = metacls._find_new_(classdict, member_type,
170 enum_class = super().__new__(metacls, cls, bases, classdict)
401 metacls = cls.__class__
404 classdict = metacls.__prepare__(class_name, bases)
424 enum_class = metacls.__new__(metacls, class_name, bases, classdict)
/external/python/cpython3/Lib/test/
Dtest_grammar.py348 def __prepare__(metacls, name, bases, **kwds): argument
Dtest_enum.py1036 def __new__(metacls, cls, bases, classdict): argument
1051 return super(auto_enum, metacls).__new__(
1052 metacls, cls, bases, temp)
/external/python/cpython2/Doc/reference/
Ddatamodel.rst1755 class metacls(type):
1757 dict['foo'] = 'metacls was here'