/external/chromium-trace/trace-viewer/third_party/Paste/paste/util/ |
classinstance.py | 16 def __get__(self, obj, type=None): member in class:classinstancemethod
|
/prebuilts/python/linux-x86/2.7.5/lib/python2.7/site-packages/setools/ |
descriptors.py | 75 def __get__(self, obj, objtype=None): member in class:CriteriaDescriptor 132 def __get__(self, obj, objtype=None): member in class:RuletypeDescriptor 172 def __get__(self, obj, objtype=None): member in class:NetworkXGraphEdgeDescriptor
|
/prebuilts/python/linux-x86/2.7.5/lib/python2.7/site-packages/setoolsgui/setools/ |
descriptors.py | 75 def __get__(self, obj, objtype=None): member in class:CriteriaDescriptor 132 def __get__(self, obj, objtype=None): member in class:RuletypeDescriptor 172 def __get__(self, obj, objtype=None): member in class:NetworkXGraphEdgeDescriptor
|
/external/llvm/bindings/python/llvm/ |
common.py | 85 def __get__(self, instance, instance_type=None): member in class:CachedProperty
|
/external/chromium-trace/trace-viewer/third_party/WebOb/webob/ |
cachecontrol.py | 74 def __get__(self, obj, type=None): member in class:exists_property 108 def __get__(self, obj, type=None): member in class:value_property
|
dec.py | 101 def __get__(self, obj, type=None): member in class:wsgify 103 if hasattr(self.func, '__get__'): 104 return self.clone(self.func.__get__(obj, type))
|
descriptors.py | 117 return attr.__get__(self, type(self))
|
/external/chromium-trace/trace-viewer/third_party/webapp2/webapp2_extras/ |
i18n.py | 150 # __get__. 151 self.locale_selector = func.__get__(self, self.__class__) 166 self.timezone_selector = func.__get__(self, self.__class__)
|
/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...] |
/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...] |
/external/chromium-trace/trace-viewer/third_party/webapp2/ |
webapp2.py | 703 overhead. If one choses to invoke __get__ by hand the property 705 in __get__ for manual invocation. 719 def __get__(self, obj, type=None): member in class:cached_property [all...] |
/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/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/misc/common/jython/ |
jython.jar | |
/prebuilts/tools/common/m2/repository/org/python/jython/2.5.3/ |
jython-2.5.3.jar | |
/external/chromium-trace/trace-viewer/third_party/Paste/paste/ |
wsgiwrappers.py | 50 def __get__(self, obj, type=None): member in class:environ_getter
|
/prebuilts/devtools/tools/lib/ |
jython-standalone-2.5.3.jar | |
/prebuilts/tools/common/m2/repository/org/python/jython-standalone/2.5.3/ |
jython-standalone-2.5.3.jar | |
/external/chromium-trace/trace-viewer/third_party/six/ |
six.py | 89 def __get__(self, obj, tp): member in class:_LazyDescr
|
/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...] |
/prebuilts/python/darwin-x86/2.7.5/lib/python2.7/ |
_pyio.py | 232 def __get__(self, obj, typ): member in class:DocDescriptor [all...] |
/prebuilts/python/linux-x86/2.7.5/lib/python2.7/ |
_pyio.py | 232 def __get__(self, obj, typ): member in class:DocDescriptor [all...] |