goto for Python
摘要:
http://entrian.com/goto/看了看源代码,原来是通过给所有函数修改trace,然后在异常时就会执行设置的函数# Install the trace function, including all preceding frames.sys.settrace(_trace)frame = sys._getframe().f_backwhile frame: frame.f_t... 阅读全文
posted @ 2008-10-16 00:07 cutepig 阅读(5499) 评论(0) 推荐(0) 编辑