object. The callable must return one of:
- An instance of an interfaces.InstrumentationManager or subclass
- - An object implementing all or some of InstrumentationManager (todo)
- - A dictionary of callables, implementing all or some of the above (todo)
+ - An object implementing all or some of InstrumentationManager (TODO)
+ - A dictionary of callables, implementing all or some of the above (TODO)
- An instance of a ClassManager or subclass
interfaces.InstrumentationManager is public API and will remain stable
obj = self.manager.new_instance(state=self)
self.obj = weakref.ref(obj, self._cleanup)
self._strong_obj = obj
- # todo: revisit this wrt user-defined-state
obj.__dict__.update(self.dict)
self.dict = obj.__dict__
self._run_on_load(obj)