Print module infomation
//File: module2.py print 'starting to load...' import sys name = 42 def func(): pass class klass: pass print 'done loading.' /////////////////////////////////////////////////////////////////////////////////// //Main.py import module2 starting to load... done loading. module2.sys print module2.name print module2.func, module2.klass print module2.__dict__.keys()