Module skypekit :: Class Cached |

# Class Cached

source code

    object --+
             |
            Cached

Known Subclasses:
  - Object

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 `__sk_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, oid, root, *args, **kwargs) | source code
sk_exists(cls, oid, root) | source code

Properties
Inherited from `object`: `__class__`

Method Details

### __new__(cls, oid, root, *args, **kwargs) Static Method | source code
Returns: a new object with type S, a subtype of T Overrides: object.__new__ (inherited documentation)