HomeSort by relevance Sort by last modified time
    Searched full:__get__ (Results 1 - 25 of 28) sorted by null

1 2

  /external/chromium_org/third_party/yasm/source/patched-yasm/tools/python-yasm/
bytecode.pxi 45 def __get__(self): return self.bc.len function in function:Bytecode.__dealloc__
48 def __get__(self): return self.bc.mult_int function in function:Bytecode.__dealloc__
51 def __get__(self): return self.bc.line function in function:Bytecode.__dealloc__
54 def __get__(self): return self.bc.offset function in function:Bytecode.__dealloc__
57 def __get__(self): return self.bc.bc_index function in function:Bytecode.__dealloc__
62 def __get__(self): function in function:Bytecode.__dealloc__
symrec.pxi 39 def __get__(self): return yasm_symrec_get_name(self.sym) function in function:Symbol.__cinit__
42 def __get__(self): function in function:Symbol.__cinit__
52 def __get__(self): function in function:Symbol.__cinit__
57 def __get__(self): function in function:Symbol.__cinit__
68 def __get__(self): function in function:Symbol.__cinit__
76 def __get__(self): function in function:Symbol.__cinit__
84 def __get__(self): return bool(yasm_symrec_is_special(self.sym)) function in function:Symbol.__cinit__
87 def __get__(self): return bool(yasm_symrec_is_curpos(self.sym)) function in function:Symbol.__cinit__
  /external/chromium_org/third_party/WebKit/Tools/Scripts/webkitpy/common/
memoized.py 51 # Use python "descriptor" protocol __get__ to appear
53 def __get__(self, instance, owner): member in class:memoized
  /external/chromium_org/tools/cr/cr/
plugin.py 54 def __get__(self, instance, owner): member in class:classproperty
106 def __get__(self, instance, owner): member in class:Plugin.activemethod
  /prebuilts/python/darwin-x86/2.7.5/lib/python2.7/test/
test_descr.py 513 setattr(it, key, self.dict[key].__get__(it, self))
1500 def __get__(self, obj, type=None): member in class:.test_compattr.C.computed_attribute
1751 def __get__(self, obj, owner): member in class:.test_special_method_lookup.SpecialDescr
1757 def __get__(self, obj, owner): member in class:.test_special_method_lookup.ErrDescr
3027 def __get__(self, object, otype): member in class:.test_doc_descriptor.DocDescr
4381 def __get__(self, ob, type=None): member in class:.test_vicious_descriptor_nonsense.Descr
4553 def __get__(self, obj, objtype=None): member in class:.test_getattr_hooks.Descriptor
    [all...]
test_inspect.py 418 def __get__(*args): member in class:_BrokenDataDescriptor
419 raise AssertionError("should not __get__ data descriptors")
432 def __get__(*args): member in class:_BrokenMethodDescriptor
433 raise AssertionError("should not __get__ method descriptors")
    [all...]
test_descrtut.py 323 ... def __get__(self, inst, type=None):
  /prebuilts/python/linux-x86/2.7.5/lib/python2.7/test/
test_descr.py 513 setattr(it, key, self.dict[key].__get__(it, self))
1500 def __get__(self, obj, type=None): member in class:.test_compattr.C.computed_attribute
1751 def __get__(self, obj, owner): member in class:.test_special_method_lookup.SpecialDescr
1757 def __get__(self, obj, owner): member in class:.test_special_method_lookup.ErrDescr
3027 def __get__(self, object, otype): member in class:.test_doc_descriptor.DocDescr
4381 def __get__(self, ob, type=None): member in class:.test_vicious_descriptor_nonsense.Descr
4553 def __get__(self, obj, objtype=None): member in class:.test_getattr_hooks.Descriptor
    [all...]
test_inspect.py 418 def __get__(*args): member in class:_BrokenDataDescriptor
419 raise AssertionError("should not __get__ data descriptors")
432 def __get__(*args): member in class:_BrokenMethodDescriptor
433 raise AssertionError("should not __get__ method descriptors")
    [all...]
test_descrtut.py 323 ... def __get__(self, inst, type=None):
  /external/chromium_org/third_party/protobuf/python/
stubout.py 55 - The stubbing is using the builtin getattr and setattr. So, the __get__
  /external/llvm/bindings/python/llvm/
common.py 85 def __get__(self, instance, instance_type=None): member in class:CachedProperty
  /external/protobuf/python/
stubout.py 55 - The stubbing is using the builtin getattr and setattr. So, the __get__
  /prebuilts/python/darwin-x86/2.7.5/lib/python2.7/distutils/tests/
setuptools_build_ext.py 163 compiler.link_shared_object = link_shared_object.__get__(compiler)
  /prebuilts/python/darwin-x86/2.7.5/lib/python2.7/
inspect.py 84 An object passing this test has a __get__ attribute but not a __set__
92 return (hasattr(object, "__get__")
101 Data descriptors have both a __get__ and a __set__ attribute. Examples are
106 return (hasattr(object, "__set__") and hasattr(object, "__get__"))
    [all...]
pydoc.py 746 # Some descriptors may meet a failure in their __get__.
794 # Some descriptors may meet a failure in their __get__.
    [all...]
_pyio.py 232 def __get__(self, obj, typ): member in class:DocDescriptor
    [all...]
  /prebuilts/python/linux-x86/2.7.5/lib/python2.7/distutils/tests/
setuptools_build_ext.py 163 compiler.link_shared_object = link_shared_object.__get__(compiler)
  /prebuilts/python/linux-x86/2.7.5/lib/python2.7/
inspect.py 84 An object passing this test has a __get__ attribute but not a __set__
92 return (hasattr(object, "__get__")
101 Data descriptors have both a __get__ and a __set__ attribute. Examples are
106 return (hasattr(object, "__set__") and hasattr(object, "__get__"))
    [all...]
pydoc.py 746 # Some descriptors may meet a failure in their __get__.
794 # Some descriptors may meet a failure in their __get__.
    [all...]
_pyio.py 232 def __get__(self, obj, typ): member in class:DocDescriptor
    [all...]
  /prebuilts/python/darwin-x86/2.7.5/lib/python2.7/pydoc_data/
topics.py 6 'attribute-access': '\nCustomizing attribute access\n****************************\n\nThe following methods can be defined to customize the meaning of\nattribute access (use of, assignment to, or deletion of ``x.name``)\nfor class instances.\n\nobject.__getattr__(self, name)\n\n Called when an attribute lookup has not found the attribute in the\n usual places (i.e. it is not an instance attribute nor is it found\n in the class tree for ``self``). ``name`` is the attribute name.\n This method should return the (computed) attribute value or raise\n an ``AttributeError`` exception.\n\n Note that if the attribute is found through the normal mechanism,\n ``__getattr__()`` is not called. (This is an intentional asymmetry\n between ``__getattr__()`` and ``__setattr__()``.) This is done both\n for efficiency reasons and because otherwise ``__getattr__()``\n would have no way to access other attributes of the instance. Note\n that at least for instance variables, you can fake total control by\n not inserting any values in the instance attribute dictionary (but\n instead inserting them in another object). See the\n ``__getattribute__()`` method below for a way to actually get total\n control in new-style classes.\n\nobject.__setattr__(self, name, value)\n\n Called when an attribute assignment is attempted. This is called\n instead of the normal mechanism (i.e. store the value in the\n instance dictionary). *name* is the attribute name, *value* is the\n value to be assigned to it.\n\n If ``__setattr__()`` wants to assign to an instance attribute, it\n should not simply execute ``self.name = value`` --- this would\n cause a recursive call to itself. Instead, it should insert the\n value in the dictionary of instance attributes, e.g.,\n ``self.__dict__[name] = value``. For new-style classes, rather\n than accessing the instance dictionary, it should call the base\n class method with the same name, for example,\n ``object.__setattr__(self, name, value)``.\n\nobject.__delattr__(self, name)\n\n Like ``__setattr__()`` but for attribute deletion instead of\n assignment. This should only be implemented if ``del obj.name`` is\n meaningful for the object.\n\n\nMore attribute access for new-style classes\n===========================================\n\nThe following methods only apply to new-style classes.\n\nobject.__getattribute__(self, name)\n\n Called unconditionally to implement attribute accesses for\n instances of the class. If the class also defines\n ``__getattr__()``, the latter will not be called unless\n ``__getattribute__()`` either calls it explicitly or raises an\n ``AttributeError``. This method should return the (computed)\n attribute value or raise an ``AttributeError`` exception. In order\n to avoid infinite recursion in this method, its implementation\n should always call the base class method with the same name to\n access any attributes it needs, for example,\n ``object.__getattribute__(self, name)``.\n\n Note: This method may still be bypassed when looking up special methods\n as the result of implicit invocation via language syntax or\n built-in functions. See *Special method lookup for new-style\n classes*.\n\n\nImplementing Descriptors\n========================\n\nThe following methods only apply when an instance of the class\ncontaining the method (a so-called *descriptor* class) appears in an\n*owner* class (the descriptor must be in either the owner\'s class\ndictionary or in the class dictionary for one of its parents). In the\nexamples below, "the attribute" refers to the attribute whose name is\nthe key of the property in the owner class\' ``__dict__``.\n\nobject.__get__(self, instance, owner)\n\n Called to get the attribute of the owner class (class attribute\n access) or of an instance of that class (instance attribute\n access). *owner* is always the owner class, while *instance* is the\n instance that the attribute was accessed through, or ``None`` when\n the attribute is accessed through the *owner*. This method should\n return the (computed) attribute value or raise an\n ``AttributeError`` exception.\n\nobject.__set__(self, instance, value)\n\n Called to set the attribute on an instance *instance* of the owner\n class to a new value, *value*.\n\nobject.__delete__(self, instance)\n\n Called to delete the attribute on an instance *instance* of the\n owner class.\n\n\nInvoking Descriptors\n====================\n\nIn general, a descriptor is an object attribute with "binding\nbehavior", one whose attribute access has been overridden by methods\nin the descriptor protocol: ``__get__()``, ``__set__()``, and\n``__delete__()``. If any of those methods are defined for an object,\nit is said to be a descriptor.\n\nThe default behavior for attribute access is to get, set, or delete\nthe attribute from an object\'s dictionary. For instance, ``a.x`` has a\nlookup chain starting with ``a.__dict__[\'x\']``, then\n``type(a).__dict__[\'x\']``, and continuing through the base classes of\n``type(a)`` excluding metaclasses.\n\nHowever, if the looked-up value is an object defining one of the\ndescriptor methods, then Python may override the default behavior and\ninvoke the descriptor method instead. Where this occurs in the\nprecedence chain depends on which descriptor methods were defined and\nhow they were called. Note that descriptors are only invoked for new\nstyle objects or classes (ones that subclass ``object()`` or\n``type()``).\n\nThe starting point for descriptor invocation is a binding, ``a.x``.\nHow the arguments are assembled depends on ``a``:\n\nDirect Call\n The simplest and least common call is when user code directly\n invokes a descriptor method: ``x.__get__(a)``.\n\nInstance Binding\n If binding to a new-style object instance, ``a.x`` is transformed\n into the call: ``type(a).__dict__[\'x\'].__get__(a, type(a))``.\n\nClass Binding\n If binding to a new-style class, ``A.x`` is transformed into the\n call: ``A.__dict__[\'x\'].__get__(None, A)``.\n\nSuper Binding\n If ``a`` is an instance of ``super``, then the binding ``super(B,\n obj).m()`` searches ``obj.__class__.__mro__`` for the base class\n ``A`` immediately preceding ``B`` and then invokes the descriptor\n with the call: ``A.__dict__[\'m\'].__get__(obj, obj.__class__)``.\n\nFor instance bindings, the precedence of descriptor invocation depends\non the which descriptor methods are defined. A descriptor can define\nany combination of ``__get__()``, ``__set__()`` and ``__delete__()``.\nIf it does not define ``__get__()``, then accessing the attribute will\nreturn the descriptor object itself unless there is a value in the\nobject\'s instance dictionary. If the descriptor defines ``__set__()``\nand/or ``__delete__()``, it is a data descriptor; if it defines\nneither, it is a non-data descriptor. Normally, data descriptors\ndefine both ``__get__()`` and ``__set__()``, while non-data\ndescriptors have just the ``__get__()`` method. Data descriptors with\n``__set__()`` and ``__get__()`` defined always override a rede (…)
    [all...]
  /prebuilts/python/linux-x86/2.7.5/lib/python2.7/pydoc_data/
topics.py 6 'attribute-access': '\nCustomizing attribute access\n****************************\n\nThe following methods can be defined to customize the meaning of\nattribute access (use of, assignment to, or deletion of ``x.name``)\nfor class instances.\n\nobject.__getattr__(self, name)\n\n Called when an attribute lookup has not found the attribute in the\n usual places (i.e. it is not an instance attribute nor is it found\n in the class tree for ``self``). ``name`` is the attribute name.\n This method should return the (computed) attribute value or raise\n an ``AttributeError`` exception.\n\n Note that if the attribute is found through the normal mechanism,\n ``__getattr__()`` is not called. (This is an intentional asymmetry\n between ``__getattr__()`` and ``__setattr__()``.) This is done both\n for efficiency reasons and because otherwise ``__getattr__()``\n would have no way to access other attributes of the instance. Note\n that at least for instance variables, you can fake total control by\n not inserting any values in the instance attribute dictionary (but\n instead inserting them in another object). See the\n ``__getattribute__()`` method below for a way to actually get total\n control in new-style classes.\n\nobject.__setattr__(self, name, value)\n\n Called when an attribute assignment is attempted. This is called\n instead of the normal mechanism (i.e. store the value in the\n instance dictionary). *name* is the attribute name, *value* is the\n value to be assigned to it.\n\n If ``__setattr__()`` wants to assign to an instance attribute, it\n should not simply execute ``self.name = value`` --- this would\n cause a recursive call to itself. Instead, it should insert the\n value in the dictionary of instance attributes, e.g.,\n ``self.__dict__[name] = value``. For new-style classes, rather\n than accessing the instance dictionary, it should call the base\n class method with the same name, for example,\n ``object.__setattr__(self, name, value)``.\n\nobject.__delattr__(self, name)\n\n Like ``__setattr__()`` but for attribute deletion instead of\n assignment. This should only be implemented if ``del obj.name`` is\n meaningful for the object.\n\n\nMore attribute access for new-style classes\n===========================================\n\nThe following methods only apply to new-style classes.\n\nobject.__getattribute__(self, name)\n\n Called unconditionally to implement attribute accesses for\n instances of the class. If the class also defines\n ``__getattr__()``, the latter will not be called unless\n ``__getattribute__()`` either calls it explicitly or raises an\n ``AttributeError``. This method should return the (computed)\n attribute value or raise an ``AttributeError`` exception. In order\n to avoid infinite recursion in this method, its implementation\n should always call the base class method with the same name to\n access any attributes it needs, for example,\n ``object.__getattribute__(self, name)``.\n\n Note: This method may still be bypassed when looking up special methods\n as the result of implicit invocation via language syntax or\n built-in functions. See *Special method lookup for new-style\n classes*.\n\n\nImplementing Descriptors\n========================\n\nThe following methods only apply when an instance of the class\ncontaining the method (a so-called *descriptor* class) appears in an\n*owner* class (the descriptor must be in either the owner\'s class\ndictionary or in the class dictionary for one of its parents). In the\nexamples below, "the attribute" refers to the attribute whose name is\nthe key of the property in the owner class\' ``__dict__``.\n\nobject.__get__(self, instance, owner)\n\n Called to get the attribute of the owner class (class attribute\n access) or of an instance of that class (instance attribute\n access). *owner* is always the owner class, while *instance* is the\n instance that the attribute was accessed through, or ``None`` when\n the attribute is accessed through the *owner*. This method should\n return the (computed) attribute value or raise an\n ``AttributeError`` exception.\n\nobject.__set__(self, instance, value)\n\n Called to set the attribute on an instance *instance* of the owner\n class to a new value, *value*.\n\nobject.__delete__(self, instance)\n\n Called to delete the attribute on an instance *instance* of the\n owner class.\n\n\nInvoking Descriptors\n====================\n\nIn general, a descriptor is an object attribute with "binding\nbehavior", one whose attribute access has been overridden by methods\nin the descriptor protocol: ``__get__()``, ``__set__()``, and\n``__delete__()``. If any of those methods are defined for an object,\nit is said to be a descriptor.\n\nThe default behavior for attribute access is to get, set, or delete\nthe attribute from an object\'s dictionary. For instance, ``a.x`` has a\nlookup chain starting with ``a.__dict__[\'x\']``, then\n``type(a).__dict__[\'x\']``, and continuing through the base classes of\n``type(a)`` excluding metaclasses.\n\nHowever, if the looked-up value is an object defining one of the\ndescriptor methods, then Python may override the default behavior and\ninvoke the descriptor method instead. Where this occurs in the\nprecedence chain depends on which descriptor methods were defined and\nhow they were called. Note that descriptors are only invoked for new\nstyle objects or classes (ones that subclass ``object()`` or\n``type()``).\n\nThe starting point for descriptor invocation is a binding, ``a.x``.\nHow the arguments are assembled depends on ``a``:\n\nDirect Call\n The simplest and least common call is when user code directly\n invokes a descriptor method: ``x.__get__(a)``.\n\nInstance Binding\n If binding to a new-style object instance, ``a.x`` is transformed\n into the call: ``type(a).__dict__[\'x\'].__get__(a, type(a))``.\n\nClass Binding\n If binding to a new-style class, ``A.x`` is transformed into the\n call: ``A.__dict__[\'x\'].__get__(None, A)``.\n\nSuper Binding\n If ``a`` is an instance of ``super``, then the binding ``super(B,\n obj).m()`` searches ``obj.__class__.__mro__`` for the base class\n ``A`` immediately preceding ``B`` and then invokes the descriptor\n with the call: ``A.__dict__[\'m\'].__get__(obj, obj.__class__)``.\n\nFor instance bindings, the precedence of descriptor invocation depends\non the which descriptor methods are defined. A descriptor can define\nany combination of ``__get__()``, ``__set__()`` and ``__delete__()``.\nIf it does not define ``__get__()``, then accessing the attribute will\nreturn the descriptor object itself unless there is a value in the\nobject\'s instance dictionary. If the descriptor defines ``__set__()``\nand/or ``__delete__()``, it is a data descriptor; if it defines\nneither, it is a non-data descriptor. Normally, data descriptors\ndefine both ``__get__()`` and ``__set__()``, while non-data\ndescriptors have just the ``__get__()`` method. Data descriptors with\n``__set__()`` and ``__get__()`` defined always override a rede (…)
    [all...]
  /external/chromium_org/third_party/pymock/
mock.py 1930 def __get__(self, obj, _type=None): member in class:MagicProxy
2364 def __get__(self, obj, obj_type): member in class:PropertyMock
    [all...]
  /external/clang/bindings/python/clang/
cindex.py 137 def __get__(self, instance, instance_type=None): member in class:CachedProperty
    [all...]

Completed in 4844 milliseconds

1 2