George King added the comment:

Attached is a demo of using the feature as a fancy replacement for __ltrace__. 
It demonstrates using a closure for the local trace function to track the 
previous offset, and prints the offset transitions as src -> dst pairs. This 
helped me learn a lot about how exception handling works at the bytecode level.

----------
Added file: http://bugs.python.org/file46486/inst-trace-demo.py

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue29400>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to