[issue17491] Consolidate traceback.format_tb and traceback.print_tb

2013-04-16 Thread Benjamin Peterson
Changes by Benjamin Peterson benja...@python.org: -- resolution: - out of date status: open - closed superseder: - traceback.py has a lot of code duplication ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue17491

[issue17491] Consolidate traceback.format_tb and traceback.print_tb

2013-03-27 Thread Radu Voicilas
Radu Voicilas added the comment: Is there anything else that I have to do in order for this patch to be looked at ? I am holding off a similar one for print_exception vs. format_exception -- ___ Python tracker rep...@bugs.python.org

[issue17491] Consolidate traceback.format_tb and traceback.print_tb

2013-03-27 Thread Benjamin Peterson
Benjamin Peterson added the comment: Thank you for the patch. It seems like it would make more sense to implement print_tb in terms of extract_tb. That is, print_tb should iterate through the result of extract_tb and do its printing. -- nosy: +benjamin.peterson

[issue17491] Consolidate traceback.format_tb and traceback.print_tb

2013-03-19 Thread Radu Voicilas
New submission from Radu Voicilas: This is a patch that consolidates the implementation of traceback.format_tb and traceback.print_tb into one common internal function traceback._get_tb. The current implementations are almost identical, except that the print_tb() ones also prints to a file