2011-12-06 呼出元を知りたい import inspect# 呼出元のファイル名 inspect.currentframe().f_back.f_code.co_filename # 呼出元の行番号 inspect.currentframe().f_back.f_lineno