Home
last modified time | relevance | path

Searched refs:metaclass (Results 1 – 6 of 6) sorted by relevance

/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Demo/metaclasses/
Dmeta-vladimir.txt1 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.
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Demo/newmetaclasses/
DEiffel.py87 def _test(metaclass): argument
89 __metaclass__ = metaclass
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.10/Python/
Dceval.c4623 PyObject *metaclass = NULL, *result, *base; in build_class() local
4626 metaclass = PyDict_GetItemString(methods, "__metaclass__"); in build_class()
4627 if (metaclass != NULL) in build_class()
4628 Py_INCREF(metaclass); in build_class()
4631 metaclass = PyObject_GetAttrString(base, "__class__"); in build_class()
4632 if (metaclass == NULL) { in build_class()
4634 metaclass = (PyObject *)base->ob_type; in build_class()
4635 Py_INCREF(metaclass); in build_class()
4641 metaclass = PyDict_GetItemString(g, "__metaclass__"); in build_class()
4642 if (metaclass == NULL) in build_class()
[all …]
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Python/
Dceval.c4601 PyObject *metaclass = NULL, *result, *base; in build_class() local
4604 metaclass = PyDict_GetItemString(methods, "__metaclass__"); in build_class()
4605 if (metaclass != NULL) in build_class()
4606 Py_INCREF(metaclass); in build_class()
4609 metaclass = PyObject_GetAttrString(base, "__class__"); in build_class()
4610 if (metaclass == NULL) { in build_class()
4612 metaclass = (PyObject *)base->ob_type; in build_class()
4613 Py_INCREF(metaclass); in build_class()
4619 metaclass = PyDict_GetItemString(g, "__metaclass__"); in build_class()
4620 if (metaclass == NULL) in build_class()
[all …]
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Lib/test/
Dtest_descr.py528 def __new__(metaclass, name, bases, dict): argument
529 cls = super(autosuper, metaclass).__new__(metaclass,
562 def __new__(metaclass, name, bases, dict): argument
577 return super(autoproperty, metaclass).__new__(metaclass,
4427 for metaclass in [type, types.ClassType]:
4448 A = metaclass('A', (), {name: specialmethod})
4449 B = metaclass('B', (), {rname: specialmethod})
4468 C = metaclass('C', (), {iname: specialmethod})
Dpickletester.py121 class metaclass(type): class
125 __metaclass__ = metaclass