From: dman <ds...@ri...> - 2002-01-31 03:43:59
|
On Wed, Jan 30, 2002 at 02:34:46PM -0800, Yang Wang wrote: | Hi All, | | In Jython, how would user examine a variable to see its inheritance | tree? In Java, it can be easily done with keyword "instanceof". In *python* (remember, jython is an implementation of the python language) the function 'isinstance()' given an instance object and a class object will return true or false indicating if the instance is an instance of the class (or a subclass). -D -- Micros~1 : For when quality, reliability and security just aren't that important! |