Package portage :: Package proxy :: Module objectproxy :: Class ObjectProxy
[hide private]

Class ObjectProxy

source code

object --+
         |
        ObjectProxy
Known Subclasses:

Object that acts as a proxy to another object, forwarding attribute accesses and method calls. This can be useful for implementing lazy initialization.

Instance Methods [hide private]
 
_get_target(self) source code
 
__getattribute__(self, attr)
x.__getattribute__('name') <==> x.name
source code
 
__setattr__(self, attr, value)
x.__setattr__('name', value) <==> x.name = value
source code
 
__call__(self, *args, **kwargs) source code
 
__enter__(self) source code
 
__exit__(self, exc_type, exc_value, traceback) source code
 
__setitem__(self, key, value) source code
 
__getitem__(self, key) source code
 
__delitem__(self, key) source code
 
__contains__(self, key) source code
 
__iter__(self) source code
 
__len__(self) source code
 
__repr__(self)
repr(x)
source code
 
__str__(self)
str(x)
source code
 
__add__(self, other) source code
 
__hash__(self)
hash(x)
source code
 
__ge__(self, other) source code
 
__gt__(self, other) source code
 
__le__(self, other) source code
 
__lt__(self, other) source code
 
__eq__(self, other) source code
 
__ne__(self, other) source code
 
__bool__(self) source code
 
__nonzero__(self) source code
 
__unicode__(self) source code
 
__int__(self) source code

Inherited from object: __delattr__, __format__, __init__, __new__, __reduce__, __reduce_ex__, __sizeof__, __subclasshook__

Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

__getattribute__(self, attr)

source code 

x.__getattribute__('name') <==> x.name

Overrides: object.__getattribute__
(inherited documentation)

__setattr__(self, attr, value)

source code 

x.__setattr__('name', value) <==> x.name = value

Overrides: object.__setattr__
(inherited documentation)

__repr__(self)
(Representation operator)

source code 

repr(x)

Overrides: object.__repr__
(inherited documentation)

__str__(self)
(Informal representation operator)

source code 

str(x)

Overrides: object.__str__
(inherited documentation)

__hash__(self)
(Hashing function)

source code 

hash(x)

Overrides: object.__hash__
(inherited documentation)