Pedantic follow up: Aren't you reinventing the wheel? Don't the concepts of reference counting and the interpreter suggest that 'counting' on the fly has already been invented. "Python thinks, therefore it is the metaclass" John Ochiltree