A.M. Kuchling added the comment:

Here's a patch implementing traceback.clear_tb_frames().  (Feel free to 
bikeshed about the name.)

One more substantial question: the top frame of the traceback is possibly still 
running.  Currently the code skips it by doing an initial 'tb = tb.tb_next'.  
Would it be better to catch and ignore the RuntimeError 
from frame.clear()?

----------
stage: needs patch -> patch review
Added file: http://bugs.python.org/file31668/clear-tb-frames.txt

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

Reply via email to