I'm trying to do some fairly deep introspection and instrumentation of instances and classes at runtime, and in order for everything to be properly behaved I need to have radically different behavior in the event that the thing passed to me is a wrapped class/instance. Is there a really good way, given an instance of a class, to determine if it is wrapped or native? Currently I check to see if it has __slots__ then try to setattr a dummy variable but I imagine there is probably a cleaner way.
Nathan
-- http://mail.python.org/mailman/listinfo/python-list