New submission from STINNER Victor:

Attached patch adds a Traceback.format() to the new tracemalloc module.

Since the tracemalloc is new in Python 3.4 and my patch adds a new (simple and 
tested) method, I consider that it's not so late to add it :-)

I chose a different API than traceback.format_tb() because I would like to use 
directly print or use functions of the logging module (logging doesn't expect 
newlines).

I set the priority to release blocker because I want to know Larry's opinion on 
this issue.

@Larry: Change the priority if you consider that it's really too late for such 
change.

----------
files: traceback_format.patch
keywords: patch
messages: 211147
nosy: gvanrossum, haypo, larry, neologix
priority: release blocker
severity: normal
status: open
title: Add tracemalloc.Traceback.format() method
versions: Python 3.4
Added file: http://bugs.python.org/file34067/traceback_format.patch

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue20616>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to