On this page
tracemalloc.Sequence
Prev: tracemalloc.reset_peak | Up: tracemalloc | Next: tracemalloc.Snapshot
Rel: tracemalloc.BaseFilter, tracemalloc.clear_traces, tracemalloc.DomainFilter, tracemalloc.Filter
Ref: docs.python.org โ tracemalloc.Sequence
Tags: #public #python3 #stdlib #tracemalloc
Import
import tracemalloc
from tracemalloc import Sequence
Signature & Overview
tracemalloc.Sequence()
All the operations on a read-only sequence.
Methods & Attributes
Sequence.count(self, value)โ S.count(value) -> integer -- return number of occurrences of valueSequence.index(self, value, start=0, stop=None)โ value. Raises ValueError if the value is not present.
Usage
import collections.abc, tracemalloc
assert tracemalloc.Sequence is collections.abc.Sequence
Gotchas
- Internal re-export: Import
Sequencefromcollections.abc.
REPL Inspect
from tracemalloc import Sequence
help(Sequence)
Linked from
Related notes
- tuts/python3/stdlib_module/tracemalloc/reset_peak Linked here; links to this page; shared tags: #stdlib, #tracemalloc
- tuts/python3/stdlib_module/tracemalloc/Snapshot Linked here; links to this page; shared tags: #stdlib, #tracemalloc
- tuts/python3/stdlib_module/tracemalloc Linked here; links to this page; shared tags: #stdlib
- tuts/python3/stdlib_module/tracemalloc/BaseFilter Linked here; shared tags: #stdlib, #tracemalloc
- tuts/python3/stdlib_module/tracemalloc/clear_traces Linked here; shared tags: #stdlib, #tracemalloc
- tuts/python3/stdlib_module/tracemalloc/DomainFilter Linked here; shared tags: #stdlib, #tracemalloc
- tuts/python3/stdlib_module/tracemalloc/Filter Linked here; shared tags: #stdlib, #tracemalloc
- tuts/python3/stdlib_module/tracemalloc/Frame shared tags: #stdlib, #tracemalloc
- tuts/python3/stdlib_module/tracemalloc/get_object_traceback shared tags: #stdlib, #tracemalloc
- tuts/python3/stdlib_module/tracemalloc/get_traceback_limit shared tags: #stdlib, #tracemalloc