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 is identified by an Id specified as first parameter of the constructor. Trying to create two objects with same Id yields the same object. Uses weak references to allow the objects to be deleted normally.


Warning: __init__() is always called, don't use it to prevent initializing an already initialized object. Use _Init() instead, it is called only once.

Instance Methods
 
__copy__(self) source code

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

Static Methods
a new object with type S, a subtype of T
__new__(cls, Id, *args, **kwargs) source code
Class Variables
  _cache_ = <WeakValueDictionary at 35097976>
Properties

Inherited from object: __class__

Method Details

__new__(cls, Id, *args, **kwargs)
Static Method

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