[Python-checkins] peps: PEP 445

victor.stinner python-checkins at python.org
Tue Jun 18 03:00:27 CEST 2013


http://hg.python.org/peps/rev/37b3159ea506
changeset:   4940:37b3159ea506
user:        Victor Stinner <victor.stinner at gmail.com>
date:        Tue Jun 18 03:00:17 2013 +0200
summary:
  PEP 445

files:
  pep-0445.txt |  11 +++++++++++
  1 files changed, 11 insertions(+), 0 deletions(-)


diff --git a/pep-0445.txt b/pep-0445.txt
--- a/pep-0445.txt
+++ b/pep-0445.txt
@@ -343,6 +343,9 @@
 To have no overhead in the default configuration, customizable allocators would
 be an optional feature enabled by a configuration option or by macros.
 
+Not having to recompile Python makes debug hooks easy to use in practice.
+Extensions modules don't have to be compiled with or without macros.
+
 
 Pass the C filename and line number
 -----------------------------------
@@ -408,6 +411,14 @@
 
 * glib: `g_mem_set_vtable()
   <http://developer.gnome.org/glib/unstable/glib-Memory-Allocation.html#g-mem-set-vtable>`_
+* OpenSSL: `CRYPTO_set_mem_functions()
+  <http://git.openssl.org/gitweb/?p=openssl.git;a=blob;f=crypto/mem.c;h=f7984fa958eb1edd6c61f6667f3f2b29753be662;hb=HEAD#l124>`_
+  to set memory management functions globally
+* expat: `parserCreate()
+  <http://hg.python.org/cpython/file/cc27d50bd91a/Modules/expat/xmlparse.c#l724>`_
+  has a per-instance memory handler
+* libxml2: `xmlGcMemSetup() <http://xmlsoft.org/html/libxml-xmlmemory.html>`_,
+  global
 
 See also the `GNU libc: Memory Allocation Hooks
 <http://www.gnu.org/software/libc/manual/html_node/Hooks-for-Malloc.html>`_.

-- 
Repository URL: http://hg.python.org/peps


More information about the Python-checkins mailing list