Package Skype4Py :: Module utils :: Class Cached
[frames] | no frames]

Class Cached

source code

object --+
         |
        Cached
Known Subclasses:

Base class for all cached objects.

Every object has an owning object a handle. Owning object is where the cache is maintained, handle identifies an object of given type.

Thanks to the caching, trying to create two objects with the same owner and handle yields exactly the same object. The cache itself is based on weak references so not referenced objects are automatically removed from the cache.

Because the __init__ method will be called no matter if the object already existed or not, it is recommended to use the _Init method instead.

Instance Methods
 
__copy__(self) source code
 
__repr__(self, *Attrs)
repr(x)
source code

Inherited from object: __delattr__, __format__, __getattribute__, __hash__, __init__, __reduce__, __reduce_ex__, __setattr__, __sizeof__, __str__, __subclasshook__

Static Methods
a new object with type S, a subtype of T
__new__(cls, Owner, Handle) source code
Properties

Inherited from object: __class__

Method Details

__new__(cls, Owner, Handle)
Static Method

source code 
Returns: a new object with type S, a subtype of T
Overrides: object.__new__
(inherited documentation)

__repr__(self, *Attrs)
(Representation operator)

source code 

repr(x)

Overrides: object.__repr__
(inherited documentation)