How to give a custom object instance a type name ?
gsmatthew at ozemail.com.au
Mon Jul 14 13:35:59 CEST 2003
Hi all, quick one,
I hope I am explaining this properly, I am wanting to do some introspection
on custom object instances, for example:
>>> m = md5.new()
I can at least test here by doing something like if type(m) == 'md5.md5':
Here is a custom Dispatcher class that I have written
>>> from BI.System.Controller.Dispatcher import Dispatcher
>>> x = Dispatcher()
How do I get the same as with instance 'm' above where the type displays the
actual object instance name, however my
custom dispatcher instance is just a generic 'instance', is there some
builtin where this is set ?
More information about the Python-list