S
Stef Mientki
How can I list a type of an object instance ?
I tried:
class tLED (tDevice):
def some_proc(self):
print 'type(self)', type(self)
But i gives me:
type(self) <type 'instance'>
Moreover, I want even the type to be listed by it's ancestor, like this
class tDevice:
def some_other_proc:
print 'type(self)', type(self)
thanks,
Stef Mientki
I tried:
class tLED (tDevice):
def some_proc(self):
print 'type(self)', type(self)
But i gives me:
type(self) <type 'instance'>
Moreover, I want even the type to be listed by it's ancestor, like this
class tDevice:
def some_other_proc:
print 'type(self)', type(self)
thanks,
Stef Mientki