/ Published in: Python
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
def show(obj): if obj!=None: for i in dir(obj): v=getattr(obj,i) if "builtin_function_or_method" not in str(type(v)) and not i.startswith("__"): print "%s.%s (%s)= %s" % (obj.__class__.__name__,i,type(v), v) else: print "SHOW NONE !!!"