Python: module potProxy
# from http://code.activestate.com/recipes/496741-object-proxying/
Classes |
| |
- builtins.object
-
- PotProxy
class PotProxy(builtins.object) |
|
PotProxy(obj, *args, **kwargs)
|
|
Methods defined here:
- __bool__(self)
- __del__(self)
- __delattr__(self, name)
- Implement delattr(self, name).
- __getattr__(self, name)
- # proxying (special cases)
- __getitem__(self, index)
- __getslice__(self, i, j)
- __init__(self, obj)
- Initialize self. See help(type(self)) for accurate signature.
- __len__(self)
- #these methods are not class methods (like calcEnergy, below)-
# only of Pots, only PotList objects have these methods, so
# we add them specially.
- __repr__(self)
- Return repr(self).
- __setattr__(self, name, value)
- Implement setattr(self, name, value).
- __str__(self)
- Return str(self).
Static methods defined here:
- __new__(cls, obj, *args, **kwargs)
- creates an proxy instance referencing `obj`. (obj, *args, **kwargs) are
passed to this class' __init__, so deriving classes can define an
__init__ method of their own.
note: _class_proxy_cache is unique per deriving class (each deriving
class must hold its own cache)
Data descriptors defined here:
- __weakref__
list of weak references to the object (if defined)
| |