Package entropy :: Module debug :: Class DebugList

Class DebugList

source code


This class implements a list() object with debug prints using entropy.const.const_debug_write

Instance Methods
new empty list
__init__(self)
x.__init__(...) initializes x; see help(type(x)) for signature
source code
 
__add__(self, other)
x+y
source code
 
__contains__(self, item)
y in x
source code
 
__delattr__(self, name)
x.__delattr__('name') <==> del x.name
source code
 
__delitem__(self, key)
del x[y]
source code
 
__delslice__(self, i, j)
del x[i:j]
source code
 
__eq__(self, other)
x==y
source code
 
__ge__(self, other)
x>=y
source code
 
__getattribute__(self, name)
x.__getattribute__('name') <==> x.name
source code
 
__getitem__(self, key)
x[y]
source code
 
__gt__(self, other)
x>y
source code
 
__hash__(self)
hash(x)
source code
 
__iadd__(self, other)
x+=y
source code
 
__imul__(self, other)
x*=y
source code
 
__iter__(self)
iter(x)
source code
 
__le__(self, other)
x<=y
source code
 
__len__(self)
len(x)
source code
 
__lt__(self, other)
x<y
source code
 
__mul__(self, other)
x*n
source code
 
__ne__(self, other)
x!=y
source code
 
__reversed__(self)
return a reverse iterator over the list
source code
 
__setattr__(self, name, value)
x.__setattr__('name', value) <==> x.name = value
source code
 
__setitem__(self, key, value)
x[i]=y
source code
 
__setslice__(self, i, j, sequence)
x[i:j]=y
source code
 
append(self, item)
append object to end
source code
integer
count(self, item)
return number of occurrences of value
source code
 
extend(self, other)
extend list by appending elements from the iterable
source code
 
index(self, item)
L.index(value, [start, [stop]]) -> integer -- return first index of value.
source code
 
insert(self, pos, item)
insert object before index
source code
item
pop(self, *args, **kwargs)
remove and return item at index (default last).
source code
 
remove(self, elem)
remove first occurrence of value.
source code
 
reverse(self)
reverse *IN PLACE*
source code
 
sort(self, *args, **kwargs)
stable sort *IN PLACE*; cmp(x, y) -> -1, 0, 1
source code

Inherited from list: __getslice__, __new__, __repr__, __rmul__, __sizeof__

Inherited from object: __format__, __reduce__, __reduce_ex__, __str__, __subclasshook__

Properties

Inherited from object: __class__

Method Details

__init__(self)
(Constructor)

source code 

x.__init__(...) initializes x; see help(type(x)) for signature

Returns: new empty list
Overrides: object.__init__
(inherited documentation)

__add__(self, other)
(Addition operator)

source code 

x+y

Overrides: list.__add__
(inherited documentation)

__contains__(self, item)
(In operator)

source code 

y in x

Overrides: list.__contains__
(inherited documentation)

__delattr__(self, name)

source code 

x.__delattr__('name') <==> del x.name

Overrides: object.__delattr__
(inherited documentation)

__delitem__(self, key)
(Index deletion operator)

source code 

del x[y]

Overrides: list.__delitem__
(inherited documentation)

__delslice__(self, i, j)
(Slice deletion operator)

source code 

del x[i:j]

Use of negative indices is not supported.

Overrides: list.__delslice__
(inherited documentation)

__eq__(self, other)
(Equality operator)

source code 

x==y

Overrides: list.__eq__
(inherited documentation)

__ge__(self, other)
(Greater-than-or-equals operator)

source code 

x>=y

Overrides: list.__ge__
(inherited documentation)

__getattribute__(self, name)

source code 

x.__getattribute__('name') <==> x.name

Overrides: object.__getattribute__
(inherited documentation)

__getitem__(self, key)
(Indexing operator)

source code 

x[y]

Overrides: list.__getitem__
(inherited documentation)

__gt__(self, other)
(Greater-than operator)

source code 

x>y

Overrides: list.__gt__
(inherited documentation)

__hash__(self)
(Hashing function)

source code 

hash(x)

Overrides: object.__hash__
(inherited documentation)

__iadd__(self, other)

source code 

x+=y

Overrides: list.__iadd__
(inherited documentation)

__imul__(self, other)

source code 

x*=y

Overrides: list.__imul__
(inherited documentation)

__iter__(self)

source code 

iter(x)

Overrides: list.__iter__
(inherited documentation)

__le__(self, other)
(Less-than-or-equals operator)

source code 

x<=y

Overrides: list.__le__
(inherited documentation)

__len__(self)
(Length operator)

source code 

len(x)

Overrides: list.__len__
(inherited documentation)

__lt__(self, other)
(Less-than operator)

source code 

x<y

Overrides: list.__lt__
(inherited documentation)

__mul__(self, other)

source code 

x*n

Overrides: list.__mul__
(inherited documentation)

__ne__(self, other)

source code 

x!=y

Overrides: list.__ne__
(inherited documentation)

__reversed__(self)

source code 

return a reverse iterator over the list

Overrides: list.__reversed__
(inherited documentation)

__setattr__(self, name, value)

source code 

x.__setattr__('name', value) <==> x.name = value

Overrides: object.__setattr__
(inherited documentation)

__setitem__(self, key, value)
(Index assignment operator)

source code 

x[i]=y

Overrides: list.__setitem__
(inherited documentation)

__setslice__(self, i, j, sequence)
(Slice assignment operator)

source code 

x[i:j]=y

Use of negative indices is not supported.

Overrides: list.__setslice__
(inherited documentation)

append(self, item)

source code 

append object to end

Overrides: list.append
(inherited documentation)

count(self, item)

source code 

return number of occurrences of value

Returns: integer
Overrides: list.count
(inherited documentation)

extend(self, other)

source code 

extend list by appending elements from the iterable

Overrides: list.extend
(inherited documentation)

index(self, item)

source code 

L.index(value, [start, [stop]]) -> integer -- return first index of value. Raises ValueError if the value is not present.

Overrides: list.index
(inherited documentation)

insert(self, pos, item)

source code 

insert object before index

Overrides: list.insert
(inherited documentation)

pop(self, *args, **kwargs)

source code 

remove and return item at index (default last). Raises IndexError if list is empty or index is out of range.

Returns: item
Overrides: list.pop
(inherited documentation)

remove(self, elem)

source code 

remove first occurrence of value. Raises ValueError if the value is not present.

Overrides: list.remove
(inherited documentation)

reverse(self)

source code 

reverse *IN PLACE*

Overrides: list.reverse
(inherited documentation)

sort(self, *args, **kwargs)

source code 

stable sort *IN PLACE*; cmp(x, y) -> -1, 0, 1

Overrides: list.sort
(inherited documentation)