Searched refs:inst (Results 1 - 25 of 63) sorted by relevance

123

/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Demo/metaclasses/
H A DTrace.py47 inst = TracingInstance()
48 inst.__meta_init__(self)
50 init = inst.__getattr__('__init__')
54 return inst
83 def __init__(self, name, func, inst):
86 self.inst = inst
88 return apply(self.func, (self.inst,) + args, kw)
92 self.inst.__trace_call__(self.inst
[all...]
H A DEiffel.py68 def __init__(self, func, inst):
69 MetaMethodWrapper.__init__(self, func, inst)
75 self.pre = getattr(inst, self.__name__ + "_pre")
79 self.post = getattr(inst, self.__name__ + "_post")
86 Result = apply(self.func, (self.inst,) + args, kw)
H A DMeta.py11 def __init__(self, func, inst):
13 self.inst = inst
17 return apply(self.func, (self.inst,) + args, kw)
83 inst = self.__helper__()
84 inst.__helperinit__(self)
86 init = inst.__getattr__('__init__')
90 return inst
H A DSynch.py151 return apply(self.func, (self.inst,) + args, kw)
152 self.inst.__lock__.acquire()
154 return apply(self.func, (self.inst,) + args, kw)
156 self.inst.__lock__.release()
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Lib/
H A Dpopen2.py25 for inst in _active[:]:
26 if inst.poll(_deadstate=sys.maxint) >= 0:
28 _active.remove(inst)
178 inst = Popen3(cmd, False, bufsize)
179 return inst.fromchild, inst.tochild
188 inst = Popen3(cmd, True, bufsize)
189 return inst.fromchild, inst.tochild, inst
[all...]
H A Dpickle.py1055 # In restricted execution, assignment to inst.__class__ is
1214 inst = stack[-1]
1215 setstate = getattr(inst, "__setstate__", None)
1224 d = inst.__dict__
1241 # PyObject_SetItem(inst.__dict__, key, value) in a
1244 setattr(inst, k, v)
1247 setattr(inst, k, v)
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Lib/test/
H A Dpydocfodder.py196 def __call__(self, inst):
197 print 'Get called', self, inst
198 return inst.desc[self.attr]
202 def __call__(self, inst, val):
203 print 'Set called', self, inst, val
204 inst.desc[self.attr] = val
208 def __call__(self, inst):
209 print 'Del called', self, inst
210 del inst.desc[self.attr]
H A Dtest_popen2.py50 for inst in popen2._active:
51 inst.wait()
56 for inst in subprocess._active:
57 inst.wait()
H A Dtest_typechecks.py9 def __instancecheck__(cls, inst):
10 """Implement isinstance(inst, cls)."""
12 for c in set([type(inst), inst.__class__]))
77 def __instancecheck__(self, inst):
H A Dtest_scope.py540 inst = f(3)()
541 self.assertEqual(inst.a, inst.m())
H A Dtest_inspect.py717 self.inst = Foo()
723 return self.inst.method
740 assert 'inst' not in call_params_string
741 locs = dict(locs or {}, inst=self.inst)
742 return (func, 'inst,' + call_params_string, locs)
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Demo/classes/
H A DVec.py32 inst = cls()
33 inst.v = v
34 return inst
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.10/Objects/
H A Dclassobject.c518 PyInstanceObject *inst; local
536 inst = PyObject_GC_New(PyInstanceObject, &PyInstance_Type);
537 if (inst == NULL) {
541 inst->in_weakreflist = NULL;
543 inst->in_class = (PyClassObject *)klass;
544 inst->in_dict = dict;
545 _PyObject_GC_TRACK(inst);
546 return (PyObject *)inst;
552 register PyInstanceObject *inst; local
561 inst
631 instance_dealloc(register PyInstanceObject *inst) argument
709 instance_getattr1(register PyInstanceObject *inst, PyObject *name) argument
745 instance_getattr2(register PyInstanceObject *inst, PyObject *name) argument
771 instance_getattr(register PyInstanceObject *inst, PyObject *name) argument
797 PyInstanceObject *inst; /* pinst cast to the right type */ local
811 instance_setattr1(PyInstanceObject *inst, PyObject *name, PyObject *v) argument
827 instance_setattr(PyInstanceObject *inst, PyObject *name, PyObject *v) argument
898 instance_repr(PyInstanceObject *inst) argument
937 instance_str(PyInstanceObject *inst) argument
961 instance_hash(PyInstanceObject *inst) argument
1037 instance_length(PyInstanceObject *inst) argument
1086 instance_subscript(PyInstanceObject *inst, PyObject *key) argument
1112 instance_ass_subscript(PyInstanceObject *inst, PyObject *key, PyObject *value) argument
1160 instance_item(PyInstanceObject *inst, Py_ssize_t i) argument
1178 instance_slice(PyInstanceObject *inst, Py_ssize_t i, Py_ssize_t j) argument
1225 instance_ass_item(PyInstanceObject *inst, Py_ssize_t i, PyObject *item) argument
1265 instance_ass_slice(PyInstanceObject *inst, Py_ssize_t i, Py_ssize_t j, PyObject *value) argument
1352 instance_contains(PyInstanceObject *inst, PyObject *member) argument
2132 PyInstanceObject *inst = (PyInstanceObject*) func; local
2527 getinstclassname(PyObject *inst, char *buf, int bufsize) argument
[all...]
H A Dabstract.c2868 recursive_isinstance(PyObject *inst, PyObject *cls) argument
2880 if (PyClass_Check(cls) && PyInstance_Check(inst)) {
2882 (PyObject*)((PyInstanceObject*)inst)->in_class;
2886 retval = PyObject_TypeCheck(inst, (PyTypeObject *)cls);
2888 PyObject *c = PyObject_GetAttr(inst, __class__);
2893 if (c != (PyObject *)(inst->ob_type) &&
2907 icls = PyObject_GetAttr(inst, __class__);
2922 PyObject_IsInstance(PyObject *inst, PyObject *cls) argument
2927 if (Py_TYPE(inst) == (PyTypeObject *)cls)
2940 r = PyObject_IsInstance(inst, ite
3054 _PyObject_RealIsInstance(PyObject *inst, PyObject *cls) argument
[all...]
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Objects/
H A Dclassobject.c508 PyInstanceObject *inst; local
526 inst = PyObject_GC_New(PyInstanceObject, &PyInstance_Type);
527 if (inst == NULL) {
531 inst->in_weakreflist = NULL;
533 inst->in_class = (PyClassObject *)klass;
534 inst->in_dict = dict;
535 _PyObject_GC_TRACK(inst);
536 return (PyObject *)inst;
542 register PyInstanceObject *inst; local
551 inst
621 instance_dealloc(register PyInstanceObject *inst) argument
699 instance_getattr1(register PyInstanceObject *inst, PyObject *name) argument
728 instance_getattr2(register PyInstanceObject *inst, PyObject *name) argument
754 instance_getattr(register PyInstanceObject *inst, PyObject *name) argument
780 PyInstanceObject *inst; /* pinst cast to the right type */ local
794 instance_setattr1(PyInstanceObject *inst, PyObject *name, PyObject *v) argument
810 instance_setattr(PyInstanceObject *inst, PyObject *name, PyObject *v) argument
874 instance_repr(PyInstanceObject *inst) argument
913 instance_str(PyInstanceObject *inst) argument
937 instance_hash(PyInstanceObject *inst) argument
1013 instance_length(PyInstanceObject *inst) argument
1062 instance_subscript(PyInstanceObject *inst, PyObject *key) argument
1088 instance_ass_subscript(PyInstanceObject *inst, PyObject *key, PyObject *value) argument
1136 instance_item(PyInstanceObject *inst, Py_ssize_t i) argument
1154 instance_slice(PyInstanceObject *inst, Py_ssize_t i, Py_ssize_t j) argument
1201 instance_ass_item(PyInstanceObject *inst, Py_ssize_t i, PyObject *item) argument
1241 instance_ass_slice(PyInstanceObject *inst, Py_ssize_t i, Py_ssize_t j, PyObject *value) argument
1328 instance_contains(PyInstanceObject *inst, PyObject *member) argument
2108 PyInstanceObject *inst = (PyInstanceObject*) func; local
2503 getinstclassname(PyObject *inst, char *buf, int bufsize) argument
[all...]
H A Dabstract.c2872 recursive_isinstance(PyObject *inst, PyObject *cls) argument
2884 if (PyClass_Check(cls) && PyInstance_Check(inst)) {
2886 (PyObject*)((PyInstanceObject*)inst)->in_class;
2890 retval = PyObject_TypeCheck(inst, (PyTypeObject *)cls);
2892 PyObject *c = PyObject_GetAttr(inst, __class__);
2897 if (c != (PyObject *)(inst->ob_type) &&
2911 icls = PyObject_GetAttr(inst, __class__);
2926 PyObject_IsInstance(PyObject *inst, PyObject *cls) argument
2931 if (Py_TYPE(inst) == (PyTypeObject *)cls)
2944 r = PyObject_IsInstance(inst, ite
3058 _PyObject_RealIsInstance(PyObject *inst, PyObject *cls) argument
[all...]
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Demo/newmetaclasses/
H A DEiffel.py54 def __init__(self, inst, descr):
55 self._inst = inst
74 def callmethod(self, inst, args, kwargs):
76 self._pre(inst, *args, **kwargs)
77 x = self._func(inst, *args, **kwargs)
79 self._post(inst, x, *args, **kwargs)
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Tools/scripts/
H A Danalyze_dxp.py67 for inst in range(len(_cumulative_profile)):
68 _cumulative_profile[inst] += new_profile[inst]
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Lib/distutils/tests/
H A Dtest_install_data.py19 cmd.install_dir = inst = os.path.join(pkg_dir, 'inst')
42 self.assertTrue(os.path.exists(os.path.join(inst, rone)))
53 self.assertTrue(os.path.exists(os.path.join(inst, rone)))
71 self.assertTrue(os.path.exists(os.path.join(inst, rone)))
/device/google/contexthub/util/nanotool/
H A Dcalibrationfile.cpp30 auto inst = std::shared_ptr<CalibrationFile>(new CalibrationFile()); local
31 if (inst->Initialize()) {
32 CalibrationFile::instance_ = inst;
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Lib/compiler/
H A Dpyassem.py69 def emit(self, *inst):
71 print "\t", inst
72 if len(inst) == 2 and isinstance(inst[1], Block):
73 self.current.addOutEdge(inst[1])
74 self.current.emit(inst)
188 def emit(self, inst):
189 op = inst[0]
190 self.insts.append(inst)
226 for inst i
[all...]
/device/linaro/bootloader/edk2/StdLib/Include/Ipf/machine/
H A Ddb_machdep.h89 #define BKPT_SET(inst, addr) db_bkpt_set(inst, addr)
90 db_expr_t db_bkpt_set(db_expr_t inst, db_addr_t addr);
/device/linaro/bootloader/edk2/AppPkg/Applications/Lua/src/
H A Dlvm.c426 Instruction inst = *(ci->u.l.savedpc - 1); /* interrupted instruction */ local
427 OpCode op = GET_OPCODE(inst);
432 setobjs2s(L, base + GETARG_A(inst), --L->top);
439 lua_assert(!ISK(GETARG_B(inst)));
441 ttisnil(luaT_gettmbyobj(L, base + GETARG_B(inst), TM_LE)))
444 if (res != GETARG_A(inst)) /* condition failed? */
450 int b = GETARG_B(inst); /* first element to concatenate */
458 setobj2s(L, ci->u.l.base + GETARG_A(inst), L->top - 1);
468 if (GETARG_C(inst) - 1 >= 0) /* nresults >= 0? */
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Lib/lib2to3/tests/
H A Dtest_refactor.py43 for inst, cls in zip(instances, classes):
44 if not isinstance(inst, cls):
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.10/Modules/
H A Dgcmodule.c743 debug_instance(char *msg, PyInstanceObject *inst) argument
747 PyObject *classname = inst->in_class->cl_name;
753 msg, cname, inst);

Completed in 443 milliseconds

123