![]() |
|
|
+ Search |
![]()
|
Feb 29th, 2000 20:51
Nathan Wallace, Fredrik Lundh, John Lehmann
These two functions might help you to play with classes: isinstance (object, class) issubclass (class1, class2) There is also a __class__ attribute someObject.__class__ for more info, see: http://www.python.org/doc/current/ref/types.html http://www.python.org/doc/current/lib/specialattrs.html