/external/python/cpython3/Lib/test/ |
D | test_abc.py | 25 class C(metaclass=abc_ABCMeta): 43 class C(metaclass=abc_ABCMeta): 61 class C(metaclass=abc_ABCMeta): 102 class C(metaclass=abc_ABCMeta): 121 class C(metaclass=abc_ABCMeta): 141 class C(metaclass=abc_ABCMeta): 156 class C(metaclass=abc_ABCMeta): 181 class C(metaclass=abc_ABCMeta): 224 class C(metaclass=abc_ABCMeta): 243 class A(metaclass=abc_ABCMeta): [all …]
|
D | test_super.py | 159 class A(metaclass=Meta): 179 class A(metaclass=Meta): 200 class A(metaclass=Meta): 218 class WithoutClassRef(metaclass=Meta): 226 class WithClassRef(metaclass=Meta): 250 class WithoutClassRef(metaclass=Meta): 265 class WithClassRef(metaclass=Meta): 275 class WithClassRef(metaclass=Meta): 290 class A(metaclass=Meta, cell=bad_cell): 303 class A(metaclass=Meta):
|
D | test_subclassinit.py | 128 class A(metaclass=Meta): 192 class B(A, metaclass=Meta): 221 class MyClass(metaclass=MyMeta, otherarg=1): 226 dict(metaclass=MyMeta, otherarg=1)) 228 dict(metaclass=MyMeta, otherarg=1)) 235 class MyClass(metaclass=MyMeta, otherarg=1): 246 class MyClass(metaclass=MyMeta, otherarg=1): 259 class MyClass(metaclass=MyMeta): 268 class MyClass(metaclass=MyMeta, otherarg=1):
|
D | test_descr.py | 465 class C(metaclass=type): 478 class D(metaclass=_metaclass): 487 class C(metaclass=M1): 511 class C(metaclass=M2): 525 def __new__(metaclass, name, bases, dict): argument 526 cls = super(autosuper, metaclass).__new__(metaclass, 537 class A(metaclass=autosuper): 558 def __new__(metaclass, name, bases, dict): argument 573 return super(autoproperty, metaclass).__new__(metaclass, 575 class A(metaclass=autoproperty): [all …]
|
D | test_genericclass.py | 127 class D(c, metaclass=Meta): 253 class C(metaclass=Meta): 262 class C(metaclass=Meta):
|
D | test_inspect.py | 238 class AbstractClassExample(metaclass=ABCMeta): 260 class AbstractChecker(metaclass=ABCMeta): 486 class C(metaclass=CM): 993 class VA(metaclass=Meta): 1022 class Class(metaclass=Meta): 1035 class Class(metaclass=Meta): 1063 class Class1(metaclass=Meta1): 1065 class Class2(Class1, metaclass=Meta3): 1079 class C(metaclass=M): 1133 class A(metaclass=M): [all …]
|
/external/python/cpython3/Doc/library/ |
D | abc.rst | 27 This module provides the metaclass :class:`ABCMeta` for defining ABCs and 32 A helper class that has :class:`ABCMeta` as its metaclass. With this class, 34 avoiding sometimes confusing metaclass usage, for example:: 43 metaclass usage, as multiple inheritance may lead to metaclass conflicts. 44 One may also define an abstract base class by passing the metaclass 49 class MyABC(metaclass=ABCMeta): 59 Use this metaclass to create an ABC. An ABC can be subclassed directly, and 68 Classes created with a metaclass of :class:`ABCMeta` have the following method: 169 Using this decorator requires that the class's metaclass is :class:`ABCMeta` 170 or is derived from it. A class that has a metaclass derived from
|
D | types.rst | 27 Creates a class object dynamically using the appropriate metaclass. 31 keyword arguments (such as ``metaclass``). 43 Calculates the appropriate metaclass and creates the class namespace. 47 (such as ``metaclass``). 49 The return value is a 3-tuple: ``metaclass, namespace, kwds`` 51 *metaclass* is the appropriate metaclass, *namespace* is the 53 in *kwds* argument with any ``'metaclass'`` entry removed. If no *kwds* 62 used when the metaclass does not have a ``__prepare__`` method.
|
/external/python/setuptools/setuptools/_vendor/packaging/ |
D | _compat.py | 27 class metaclass(meta): class 30 return type.__new__(metaclass, 'temporary_class', (), {})
|
/external/python/setuptools/pkg_resources/_vendor/packaging/ |
D | _compat.py | 27 class metaclass(meta): class 30 return type.__new__(metaclass, 'temporary_class', (), {})
|
/external/python/cpython3/Lib/test/test_importlib/ |
D | abc.py | 4 class FinderTests(metaclass=abc.ABCMeta): 41 class LoaderTests(metaclass=abc.ABCMeta):
|
/external/python/cpython3/Lib/ctypes/ |
D | _endian.py | 46 class BigEndianStructure(Structure, metaclass=_swapped_meta): 55 class LittleEndianStructure(Structure, metaclass=_swapped_meta):
|
/external/python/cpython3/Tools/demo/ |
D | eiffel.py | 107 def _test(self, metaclass): argument 108 class Eiffel(metaclass=metaclass):
|
/external/python/cpython2/Demo/metaclasses/ |
D | meta-vladimir.txt | 1 Subject: Re: The metaclass saga using Python 162 >>> metaclass M: 169 M is of type <metaclass>. We cannot check this by asking Python, but 173 <metaclass __main__.M at 2023e4e0> 192 The metaclass-instances, A and B, are of type <class> and they both 204 <metaclass __main__.M at 2023e4e0> # A is an instance of M 206 <metaclass __main__.M at 2023e4e0> # B is an instance of M 223 >>> metaclass N(M): # N inherits M's properties 229 <metaclass __main__.N at 2023e500> 243 (<metaclass __main__.M at 2023e360>,) # Yes. It has a supermetaclass.
|
/external/python/cpython3/Lib/importlib/ |
D | abc.py | 30 class Finder(metaclass=abc.ABCMeta): 136 class Loader(metaclass=abc.ABCMeta): 345 class ResourceReader(metaclass=abc.ABCMeta):
|
/external/python/cpython2/Doc/library/ |
D | abc.rst | 34 Use this metaclass to create an ABC. An ABC can be subclassed directly, and 43 Classes created with a metaclass of :class:`ABCMeta` have the following method: 136 Using this decorator requires that the class's metaclass is :class:`ABCMeta` or 138 A class that has a metaclass derived from :class:`ABCMeta` 172 Using this function requires that the class's metaclass is :class:`ABCMeta` or 174 A class that has a metaclass derived from :class:`ABCMeta` cannot be
|
/external/python/cpython3/Lib/ |
D | _collections_abc.py | 84 class Hashable(metaclass=ABCMeta): 99 class Awaitable(metaclass=ABCMeta): 158 class AsyncIterable(metaclass=ABCMeta): 243 class Iterable(metaclass=ABCMeta): 359 class Sized(metaclass=ABCMeta): 374 class Container(metaclass=ABCMeta): 398 class Callable(metaclass=ABCMeta):
|
/external/libchrome/third_party/jinja2/ |
D | _compat.py | 90 class metaclass(type): class 93 return type.__new__(metaclass, 'temporary_class', (), {})
|
/external/python/cpython2/Demo/newmetaclasses/ |
D | Eiffel.py | 87 def _test(metaclass): argument 89 __metaclass__ = metaclass
|
/external/python/cpython3/Lib/test/leakers/ |
D | test_selftype.py | 9 class U(type, metaclass=T):
|
/external/protobuf/python/google/protobuf/internal/ |
D | _parameterized.py | 437 metaclass = type( 441 return metaclass(
|
/external/python/setuptools/pkg_resources/_vendor/ |
D | six.py | 805 class metaclass(meta): class 809 return type.__new__(metaclass, 'temporary_class', (), {}) 812 def add_metaclass(metaclass): argument 824 return metaclass(cls.__name__, cls.__bases__, orig_vars)
|
/external/python/six/ |
D | six.py | 824 class metaclass(type): class 832 return type.__new__(metaclass, 'temporary_class', (), {}) 835 def add_metaclass(metaclass): argument 847 return metaclass(cls.__name__, cls.__bases__, orig_vars)
|
/external/python/setuptools/setuptools/_vendor/ |
D | six.py | 805 class metaclass(meta): class 809 return type.__new__(metaclass, 'temporary_class', (), {}) 812 def add_metaclass(metaclass): argument 824 return metaclass(cls.__name__, cls.__bases__, orig_vars)
|
/external/scapy/scapy/modules/ |
D | six.py | 828 class metaclass(meta): class 832 return type.__new__(metaclass, 'temporary_class', (), {}) 835 def add_metaclass(metaclass): argument 847 return metaclass(cls.__name__, cls.__bases__, orig_vars)
|