[Python-checkins] peps: PEP 454: the traceback idea comes from the faulthandler module
victor.stinner
python-checkins at python.org
Wed Oct 23 20:04:48 CEST 2013
http://hg.python.org/peps/rev/1b18c703c201
changeset: 5211:1b18c703c201
user: Victor Stinner <victor.stinner at gmail.com>
date: Tue Oct 22 17:04:24 2013 +0200
summary:
PEP 454: the traceback idea comes from the faulthandler module
files:
pep-0454.txt | 6 +++++-
1 files changed, 5 insertions(+), 1 deletions(-)
diff --git a/pep-0454.txt b/pep-0454.txt
--- a/pep-0454.txt
+++ b/pep-0454.txt
@@ -49,7 +49,11 @@
Using the customized allocation API from PEP 445, it becomes easy to
set up a hook on Python memory allocators. A hook can inspect Python
-internals to retrieve Python tracebacks.
+internals to retrieve Python tracebacks. The idea of getting the current
+traceback comes from the faulthandler module. The faulthandler dumps
+the traceback of all Python threads on a crash, here is the idea is to
+get the traceback of the current Python thread when a memory block is
+allocated by Python.
This PEP proposes to add a new ``tracemalloc`` module, as a debug tool
to trace memory blocks allocated by Python. The module provides the
--
Repository URL: http://hg.python.org/peps
More information about the Python-checkins
mailing list