xappy.replaylog.NotifyingDeleteObject

Package xappy :: Module replaylog :: Class NotifyingDeleteObject |
[frames] | no frames]

# Class NotifyingDeleteObject

source code

    object --+
             |
            NotifyingDeleteObject

An wrapping for an object which calls a callback when its deleted.

Note that the callback will be called from a __del__ method, so shouldn't raise any exceptions, and probably shouldn't make new references to the object supplied to it.

Instance Methods
__init__(self, obj, callback) x.__init__(...) initializes x; see x.__class__.__doc__ for signature | source code
__del__(self) | source code
Inherited from `object`: `__delattr__`, `__getattribute__`, `__hash__`, `__new__`, `__reduce__`, `__reduce_ex__`, `__repr__`, `__setattr__`, `__str__`

Properties
Inherited from `object`: `__class__`

Method Details

### __init__(self, obj, callback) (Constructor) | source code
x.__init__(...) initializes x; see x.__class__.__doc__ for signature Overrides: object.__init__ (inherited documentation)