sys.settrace 为built-in函数
底层实现代码
- https://github.com/python/cpython/blob/master/Python/sysmodule.c
- https://github.com/python/cpython/blob/master/Python/ceval.c
PyFrameObject 实现
- https://github.com/python/cpython/blob/master/Include/frameobject.h
- https://github.com/python/cpython/blob/master/Objects/frameobject.c
1 |
import sys |
近期评论