class
TranListContents
- Reference
Methods
- def append(self, x: typing.List[int[3]]) -> None
- Add an item to the end of the list
- def clear(self, /) -> None
- Clear the contents
- def count(self, x: typing.List[int[3]]) -> int
- Return the number of times ``x`` appears in the list
- def extend(self, L: TranList) -> None
- Extend the list by appending all the items in the given list
- def extend(self, L: iterable) -> None
- Extend the list by appending all the items in the given list
- def insert(self, i: int, x: typing.List[int[3]]) -> None
- Insert an item at a given position.
- def pop(self, /) -> typing.List[int[3]]
- Remove and return the last item
- def pop(self, i: int) -> typing.List[int[3]]
- Remove and return the item at index ``i``
- def remove(self, x: typing.List[int[3]]) -> None
- Remove the first item from the list whose value is x. It is an error if there is no such item.
Special methods
- def __bool__(self, /) -> bool
- Check whether the list is nonempty
- def __contains__(self, x: typing.List[int[3]]) -> bool
- Return true the container contains ``x``
- def __delitem__(self, arg0: int, /) -> None
- Delete the list elements at index ``i``
- def __delitem__(self, arg0: slice, /) -> None
- Delete list elements using a slice object
- def __eq__(self, arg0: TranList, /) -> bool
- def __getitem__(self, s: slice) -> TranList
- Retrieve list elements using a slice object
- def __getitem__(self, arg0: int, /) -> typing.List[int[3]]
- def __init__(self, /) -> None
- def __init__(self, arg0: TranList, /) -> None
- Copy constructor
- def __init__(self, arg0: iterable, /) -> None
- def __iter__(self, /) -> typing.Iterator[typing.List[int[3]]]
- def __len__(self, /) -> int
- def __ne__(self, arg0: TranList, /) -> bool
- def __setitem__(self, arg0: int, arg1: typing.List[int[3]], /) -> None
- def __setitem__(self, arg0: slice, arg1: TranList, /) -> None
- Assign list elements using a slice object