Home
last modified time | relevance | path

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

/external/python/cpython3/Lib/test/
Dtest_types.py787 def __prepare__(mcls, name, bases, **kw): member in ClassCreationTests.Meta
788 ns = super().__prepare__(name, bases)
921 def __prepare__(*args): member in ClassCreationTests.test_prepare_class.A
937 def __prepare__(*args): member in ClassCreationTests.test_bad___prepare__.BadMeta
947 def __prepare__(*args): member in ClassCreationTests.test_bad___prepare__.BadMeta
985 def __prepare__(mcls, name, bases): member in ClassCreationTests.test_metaclass_derivation.AMeta
993 def __prepare__(mcls, name, bases): member in ClassCreationTests.test_metaclass_derivation.BMeta
994 ns = super().__prepare__(name, bases)
1058 def __prepare__(mcls, name, bases): member in ClassCreationTests.test_metaclass_override_callable.ANotMeta
1067 def __prepare__(mcls, name, bases): member in ClassCreationTests.test_metaclass_override_callable.BNotMeta
[all …]
Dtest_descr.py646 def __prepare__(mcls, name, bases): member in ClassPropertiesAndMethods.test_metaclass.AMeta
655 def __prepare__(mcls, name, bases): member in ClassPropertiesAndMethods.test_metaclass.BMeta
656 ns = super().__prepare__(name, bases)
722 def __prepare__(mcls, name, bases): member in ClassPropertiesAndMethods.test_metaclass.ANotMeta
730 def __prepare__(mcls, name, bases): member in ClassPropertiesAndMethods.test_metaclass.BNotMeta
732 return super().__prepare__(name, bases)
Dtest_grammar.py348 def __prepare__(metacls, name, bases, **kwds): member in GrammarTests.test_var_annot_metaclass_semantics.CMeta
/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.py120 ns = meta.__prepare__(name, bases, **kwds)
Denum.py126 def __prepare__(metacls, cls, bases): member in EnumMeta
404 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.rst1720 * ``__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.rst152 due to a metaclass with a bad ``__prepare__()`` method. Patch by Oren
/external/python/cpython3/Doc/reference/
Ddatamodel.rst1911 single: __prepare__ (metaclass method)
1914 is prepared. If the metaclass has a ``__prepare__`` attribute, it is called
1915 as ``namespace = metaclass.__prepare__(name, bases, **kwds)`` (where the
1918 If the metaclass has no ``__prepare__`` attribute, then the class namespace
1924 Introduced the ``__prepare__`` namespace hook
1958 passed here are the same as those passed to ``__prepare__``).
/external/python/cpython3/Python/
Dbltinmodule.c39 _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