[New-bugs-announce] [issue17491] Consolidate traceback.format_tb and traceback.print_tb

Radu Voicilas report at bugs.python.org
Wed Mar 20 03:48:57 CET 2013


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 ...

Now, I don't really know what the Python developers feel about this kind of cleanups which doesn't really add any value for the end user. I've seen projects where this kind of patches are not accepted because of this. IMHO, making code more readable and reducing duplication is always a good thing.

----------
components: Library (Lib)
files: consolidate_tb_functions.diff
keywords: patch
messages: 184725
nosy: raduv
priority: normal
severity: normal
status: open
title: Consolidate traceback.format_tb and traceback.print_tb
type: enhancement
versions: Python 3.4
Added file: http://bugs.python.org/file29497/consolidate_tb_functions.diff

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue17491>
_______________________________________


More information about the New-bugs-announce mailing list