[Python-checkins] peps: PEP 454: cleanup

victor.stinner python-checkins at python.org
Thu Oct 3 17:47:13 CEST 2013


http://hg.python.org/peps/rev/6af6b504c635
changeset:   5165:6af6b504c635
user:        Victor Stinner <victor.stinner at gmail.com>
date:        Thu Oct 03 17:47:02 2013 +0200
summary:
  PEP 454: cleanup

files:
  pep-0454.txt |  20 +++++++++-----------
  1 files changed, 9 insertions(+), 11 deletions(-)


diff --git a/pep-0454.txt b/pep-0454.txt
--- a/pep-0454.txt
+++ b/pep-0454.txt
@@ -369,6 +369,9 @@
     Get the size in bytes and the length of the dictionary of Unicode
     interned strings as a ``(size: int, length: int)`` tuple.
 
+    The size is the size of the dictionary, excluding the size of
+    strings.
+
 
 DisplayTop
 ----------
@@ -421,11 +424,6 @@
     If ``True`` (default value), compare to the previous snapshot. If
     ``False``, compare to the first snapshot.
 
-``count`` attribute:
-
-    If ``True`` (default value), display the number of allocated memory
-    blocks.
-
 ``filename_parts`` attribute:
 
     Number of displayed filename parts (int, default: ``3``). Extra
@@ -639,9 +637,9 @@
 
     Format of the metric:
 
-    * ``int``: a number
-    * ``percent``: percentage (1.0 means 100%)
-    * ``size``: a size in bytes
+    * ``'int'``: a number
+    * ``'percent'``: percentage, ``1.0`` means ``100%``
+    * ``'size'``: a size in bytes
 
 
 Snapshot
@@ -762,7 +760,7 @@
     store more frames.
 
     The ``tracemalloc`` module must be enabled to take a snapshot. See
-    the the ``enable`` function.
+    the the ``enable()`` function.
 
 ``get_metric(name, default=None)`` method:
 
@@ -868,7 +866,7 @@
 Task
 ----
 
-``Task(func, \*args, \*\*kw)`` class:
+``Task(func, *args, **kw)`` class:
 
     Task calling ``func(*args, **kw)``. When scheduled, the task is
     called when the traced memory is increased or decreased by more than
@@ -998,7 +996,7 @@
     * ``$counter``: counter starting at 1 and incremented at each snapshot,
       formatted as 4 decimal digits
 
-    The default template is ``tracemalloc-$counter.pickle``.
+    The default template is ``'tracemalloc-$counter.pickle'``.
 
 ``metrics`` attribute:
 

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


More information about the Python-checkins mailing list