Skip to content

Size T List

Class full path: NemAll_Python_Utility.SizeTList

Functions

__contains__(value)

Check for a value in the list

Parameters:

Name Type Description Default
value int

Value to check

required

Returns:

Type Description
bool

State for value is in the list

__delitem__(value)

Delete a list item

Parameters:

Name Type Description Default
value int

Value to delete

required

__eq__(compare_list)

Compare two list

Parameters:

Name Type Description Default
compare_list SizeTList

List to compare

required

Returns:

Type Description
bool

Lists are equal state

__getitem__(index)

Get a list item

Parameters:

Name Type Description Default
index int

Index of the item

required

Returns:

Type Description
int

Value for the index

__init__()

Initialize

__iter__()

List iterator

Returns:

Type Description
Iterator

List iterator

__len__()

Get the list length

Returns:

Type Description
int

Length of the list

__repr__()

Convert the list to a string

Returns:

Type Description
str

List values as string

__setitem__(index, value)

Set a list item

Parameters:

Name Type Description Default
index int | slice

Index of the item

required
value int

Value to item

required

append(value)

Append a list item

Parameters:

Name Type Description Default
value int

Value to append

required

count(value)

Get the values in the list

Parameters:

Name Type Description Default
value int

Value to count

required

Returns: Value count

extend(iterable)

Add the items from an iterable to the end of the list

Parameters:

Name Type Description Default
iterable SizeTList

Iterable to add

required

index(value)

Get the index for the value

Parameters:

Name Type Description Default
value int

Value to find

required

Returns:

Type Description
int

Index for the value

insert(index, item)

Insert an item in the list

Parameters:

Name Type Description Default
index int

Index of the item

required
item int

Value to insert

required

pop overload

pop()

Pop the last value from the list

Returns:

Type Description
int

Last value from the list

pop(index)

Pop an item from the list

Parameters:

Name Type Description Default
index int

Index of the item

required

Returns:

Type Description
int

Value of the item

remove(value)

Remove a value from the list

Parameters:

Name Type Description Default
value int

Value to remove

required

reverse()

Reverse the list

sort overload

sort()

Sort the list

sort(cmp)

EXPERIMENTAL!