[issue17646] traceback.py has a lot of code duplication

Martin Morrison report at bugs.python.org
Sat Apr 20 23:18:08 CEST 2013


Martin Morrison added the comment:

On 20 Apr 2013, at 18:55, Serhiy Storchaka <report at bugs.python.org> wrote:
> Serhiy Storchaka added the comment:
> 
> Could print_exception() in Lib/idlelib/run.py reuse new traceback functions?

Actually, cleaning up code like that in Idle and the code module and import.c was what I was aiming to solve when I stumbled upon the duplication in traceback.py - once this patch is in, I plan to raise a separate issue with my suggestion for that clean up.

To answer your question directly, the changes I've made here don't solve the problem, no. More invasive changes are required, which is why I raised this cleanup portion of my change separately (on the assumption this change alone wouldn't be controversial, but my wider change might be).

----------

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


More information about the Python-bugs-list mailing list