[Python-checkins] peps: PEP 454: rename Snapshot.apply_filters() to Snapshot.filter_traces()
victor.stinner
python-checkins at python.org
Tue Nov 12 13:42:14 CET 2013
http://hg.python.org/peps/rev/881b7f5fbabe
changeset: 5266:881b7f5fbabe
user: Victor Stinner <victor.stinner at gmail.com>
date: Tue Nov 12 13:38:36 2013 +0100
summary:
PEP 454: rename Snapshot.apply_filters() to Snapshot.filter_traces()
files:
pep-0454.txt | 24 ++++++++++++------------
1 files changed, 12 insertions(+), 12 deletions(-)
diff --git a/pep-0454.txt b/pep-0454.txt
--- a/pep-0454.txt
+++ b/pep-0454.txt
@@ -284,18 +284,6 @@
The ``take_snapshot()`` function creates a snapshot instance.
-``apply_filters(filters)`` method:
-
- Create a new ``Snapshot`` instance with a filtered ``traces``
- sequence, *filters* is a list of ``Filter`` instances. If *filters*
- is an empty list, return a new ``Snapshot`` instance with a copy of
- the traces.
-
- All inclusive filters are applied at once, a trace is ignored if no
- inclusive filters match it. A trace is ignored if at least one
- exclusive filter matchs it.
-
-
``compare_to(old_snapshot: Snapshot, group_by: str, cumulative: bool=False)`` method:
Compute the differences with an old snapshot. Get statistics as a
@@ -317,6 +305,18 @@
Use ``load()`` to reload the snapshot.
+``filter_traces(filters)`` method:
+
+ Create a new ``Snapshot`` instance with a filtered ``traces``
+ sequence, *filters* is a list of ``Filter`` instances. If *filters*
+ is an empty list, return a new ``Snapshot`` instance with a copy of
+ the traces.
+
+ All inclusive filters are applied at once, a trace is ignored if no
+ inclusive filters match it. A trace is ignored if at least one
+ exclusive filter matchs it.
+
+
``load(filename)`` classmethod:
Load a snapshot from a file.
--
Repository URL: http://hg.python.org/peps
More information about the Python-checkins
mailing list