hello I get a problem while trying to print non callable items in dir(module).May be as the items are strings.
for x in dir(sys): ?? if sys.x is callable: ???? print sys.x() ?? else:print sys.x Traceback (most recent call last): File "<pyshell#10>", line 2, in <module> if sys.x is callable: AttributeError: 'module' object has no attribute 'x' Some one please tell me How can I do that? Prasad
_______________________________________________ Tutor maillist - Tutor@python.org http://mail.python.org/mailman/listinfo/tutor