Back to index

moin  1.9.0~rc2
Public Member Functions | Public Attributes Class Reference

List of all members.

Public Member Functions

def __init__
def __del__

Public Attributes


Detailed Description

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.

Definition at line 41 of file

Constructor & Destructor Documentation

Definition at line 49 of file

00050     def __init__(self, obj, callback):
00051         self.obj = obj
00052         self.callback = callback

Definition at line 53 of file

00054     def __del__(self):
00055         self.callback(self.obj)

Member Data Documentation

Definition at line 51 of file

Definition at line 50 of file

The documentation for this class was generated from the following file: