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 <rep...@bugs.python.org>
<http://bugs.python.org/issue17491>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to