人生の敗北者でも使えるPythonのお勉強 Part9
■ このスレッドは過去ログ倉庫に格納されています
0129デフォルトの名無しさん
2006/03/21(火) 23:43:49こういうことではないのか? >>116
a.py
---
#! /usr/bin/python
import b
b.func()
b.py
---
#! /usr/bin/python
import traceback as tb
def func():
print tb.extract_stack()
return
$ python a.py
[('./a.py', 5, '?', 'b.func()'), ('/home/hoge/b.py', 6, 'func', 'print tb.extract_stack()')]
./a.py ?
■ このスレッドは過去ログ倉庫に格納されています