Serhiy Storchaka added the comment: Last patch is more complicated and needs more time to review.
I suppose the code would be more clear if split _extract_tb_or_stack_iter() to parts. One generator just generates (filename, lineno, name, f.f_globals) tuples. Then these tuples either handled directly or passed through a deque with fixed size. And some tests would be good. ---------- _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue22619> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com