AccessEngine :: AEState :: Setting :: Proxy :: Class Proxy
[hide private]
[frames] | no frames]

Class Proxy

source code

object --+
         |
        Proxy

Our own proxy object which enables weak references to bound and unbound methods and arbitrary callables. Pulls information about the function, class, and instance out of a bound method. Stores a weak reference to the instance to support garbage collection.

Instance Methods [hide private]
 
__init__(self, cb)
x.__init__(...) initializes x; see x.__class__.__doc__ for signature
source code
 
__call__(self, *args, **kwargs)
Proxy for a call to the weak referenced object.
source code
boolean
__eq__(self, other)
Compare the held function and instance with that held by another proxy.
source code
 
__ne__(self, other)
Inverse of __eq__.
source code

Inherited from object: __delattr__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __repr__, __setattr__, __str__

Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

__init__(self, cb)
(Constructor)

source code 
x.__init__(...) initializes x; see x.__class__.__doc__ for signature
Overrides: object.__init__
(inherited documentation)

__call__(self, *args, **kwargs)
(Call operator)

source code 
Proxy for a call to the weak referenced object. Take arbitrary params to pass to the callable.
Raises:
  • ReferenceError - When the weak reference refers to a dead object

__eq__(self, other)
(Equality operator)

source code 
Compare the held function and instance with that held by another proxy.
Parameters:
  • other (Proxy) - Another proxy object
Returns: boolean
Whether this func/inst pair is equal to the one in the other proxy object or not