sequence4582%python.module
fault.syntax

Segmented sequence implementation for large lists.

itertools
import

Sequence
import

Iterable0
import

address0
function

address(seq, start, stop)

Find the address of the absolute slice.

delete0
function

delete(seq, start, stop)

insert584%
function

insert(seq, offset, insertion)

Segments0
class

Manage a sequence of sequences as if it were a single sequence. Primarily used to control maximum memory moves for each insertion when dealing with (relatively) naive sequence implementations.

Segments does not make assumptions about the size of the lists; full scans of the list sizes must be used to identify proper placement with exception to recently organized Segments instance where the size of each segment is already known.

Segments__slots__0
data

__slots__ = ('sequences', '_length')

SegmentsType0
data

Type = list

Segmentssegment_size
data

segment_size = 64

Segments__init__0
method

__init__(self)

Segments__getitem__0
method

__getitem__(self, item)

Segments__setitem__292%
method

__setitem__(self, item, value)

Segments__delitem__473%
method

__delitem__(self, item)

Segments__len__0
method

__len__(self)

Segments__iadd__40%
method

__iadd__(self, sequence)

Segmentsselect0
method

select(self, start, stop)

Return an iterable to the requested slice.

Segments__iter__0
method

__iter__(self)

Segmentsclear0
method

clear(self)

Truncate the entire sequence.

Segmentspartition0
method

partition(self)

Organize the segments so that they have appropriate sizes.

Segmentsprepend40%
method

prepend(self, sequence)

Segmentsappend0
method

append(self, sequence)

Segmentsinsert0
method

insert(self, offset, sequence)

Segmentsdelete286%
method

delete(self, start, stop)

Segmentsusage50%
method

usage(self)

Identify the primary memory using objects.

Immutable0
class

Segments compatible sequence that disregards manipulations to provide, cooperative, read-only access to an element sequence. Internal storage is a regular list and no attempt is made to enforce immutability outside of the interface.

Immutable__slots__0
data

__slots__ = ('_constant',)

Immutable__init__10%
method

__init__(self, items)

Immutableusage30%
method

usage(self)

Immutableselect150%
method

select(self, start, stop)

Immutable__iter__10%
method

__iter__(self)

Immutable__getitem__30%
method

__getitem__(self, item)

Immutable__setitem__10%
method

__setitem__(self, item, value)

Immutable__delitem__10%
method

__delitem__(self, item)

Immutable__len__10%
method

__len__(self)

Immutable__iadd__10%
method

__iadd__(self, sequence)

Immutableclear10%
method

clear(self)

Immutablepartition10%
method

partition(self)

Immutableprepend10%
method

prepend(self, sequence)

Immutableappend10%
method

append(self, sequence)

Immutableinsert10%
method

insert(self, offset, sequence)

Immutabledelete10%
method

delete(self, start, stop)