I’m wondering how to convert a python ‘type’ object into a string using python’s reflective capabilities.
For example, I’d like to print the type of an object
print "My type is " + type(someObject) # (which obviously doesn't work like this)
I’m wondering how to convert a python ‘type’ object into a string using python’s reflective capabilities.
For example, I’d like to print the type of an object
print "My type is " + type(someObject) # (which obviously doesn't work like this)