Home
last modified time | relevance | path

Searched refs:__prepare__ (Results 1 – 20 of 20) sorted by relevance

/external/python/cpython3/Lib/test/
Dtest_types.py816 def __prepare__(mcls, name, bases, **kw): member in ClassCreationTests.Meta
817 ns = super().__prepare__(name, bases)
950 def __prepare__(*args): member in ClassCreationTests.test_prepare_class.A
966 def __prepare__(*args): member in ClassCreationTests.test_bad___prepare__.BadMeta
976 def __prepare__(*args): member in ClassCreationTests.test_bad___prepare__.BadMeta
1014 def __prepare__(mcls, name, bases): member in ClassCreationTests.test_metaclass_derivation.AMeta
1022 def __prepare__(mcls, name, bases): member in ClassCreationTests.test_metaclass_derivation.BMeta
1023 ns = super().__prepare__(name, bases)
1087 def __prepare__(mcls, name, bases): member in ClassCreationTests.test_metaclass_override_callable.ANotMeta
1096 def __prepare__(mcls, name, bases): member in ClassCreationTests.test_metaclass_override_callable.BNotMeta
[all …]
Dtest_descr.py655 def __prepare__(mcls, name, bases): member in ClassPropertiesAndMethods.test_metaclass.AMeta
664 def __prepare__(mcls, name, bases): member in ClassPropertiesAndMethods.test_metaclass.BMeta
665 ns = super().__prepare__(name, bases)
731 def __prepare__(mcls, name, bases): member in ClassPropertiesAndMethods.test_metaclass.ANotMeta
739 def __prepare__(mcls, name, bases): member in ClassPropertiesAndMethods.test_metaclass.BNotMeta
741 return super().__prepare__(name, bases)
Dtest_grammar.py375 def __prepare__(metacls, name, bases, **kwds): member in GrammarTests.test_var_annot_metaclass_semantics.CMeta
/external/python/enum34/enum/
D__init__.py150 def __prepare__(metacls, cls, bases): member in EnumMeta
446 classdict = metacls.__prepare__(class_name, bases)
/external/python/six/
Dsix.py830 def __prepare__(cls, name, this_bases): member in with_metaclass.metaclass
831 return meta.__prepare__(name, bases)
Dtest_six.py757 def __prepare__(cls, name, bases): member in test_with_metaclass_prepare.Meta
758 namespace = MyDict(super().__prepare__(name, bases), cls=cls, bases=bases)
DCHANGES9 - Pull request #178: `with_metaclass` now properly proxies `__prepare__` to the
/external/python/cpython3/Lib/
Dtypes.py127 ns = meta.__prepare__(name, bases, **kwds)
Denum.py125 def __prepare__(metacls, cls, bases): member in EnumMeta
407 classdict = metacls.__prepare__(class_name, bases)
/external/python/cpython3/Doc/library/
Dtypes.rst62 used when the metaclass does not have a ``__prepare__`` method.
70 Introduced the ``__prepare__`` namespace hook
Dunittest.mock.rst2044 * ``__prepare__``, ``__instancecheck__``, ``__subclasscheck__``, ``__del__``
/external/python/cpython3/Misc/NEWS.d/
D3.7.0a2.rst89 due to a metaclass with a bad ``__prepare__()`` method. Patch by Oren
D3.6.4rc1.rst151 due to a metaclass with a bad ``__prepare__()`` method. Patch by Oren
/external/python/cpython3/Doc/reference/
Ddatamodel.rst1996 single: __prepare__ (metaclass method)
1999 is prepared. If the metaclass has a ``__prepare__`` attribute, it is called
2000 as ``namespace = metaclass.__prepare__(name, bases, **kwds)`` (where the
2002 ``__prepare__`` method should be implemented as a :func:`classmethod`. The
2003 namespace returned by ``__prepare__`` is passed in to ``__new__``, but when
2006 If the metaclass has no ``__prepare__`` attribute, then the class namespace
2012 Introduced the ``__prepare__`` namespace hook
2046 passed here are the same as those passed to ``__prepare__``).
/external/python/cpython3/Python/
Dbltinmodule.c14 _Py_IDENTIFIER(__prepare__);
/external/python/cpython3/Tools/c-analyzer/
DTODO501 Python/bltinmodule.c:PyId___prepare__ _Py_IDENTIFIER(__prepare__)
Dknown.tsv1314 Python/bltinmodule.c - PyId___prepare__ variable _Py_IDENTIFIER(__prepare__)
/external/python/cpython3/Doc/whatsnew/
D3.6.rst555 :ref:`type.__prepare__() <prepare>`) is now an insertion-order-preserving
D3.4.rst1985 uses of :ref:`__prepare__ <prepare>`. (Contributed by Benjamin Peterson in
/external/python/cpython3/Misc/
DHISTORY12856 - Handle errors from looking up __prepare__ correctly.
17203 __prepare__ function which will be called to create the dictionary