8.2.2.18. AsyncList

class AsyncList(*, future=None, n=1)[source]

List of asynchronous results.

Methods

__add__

Return self+value.

__call__

Call self as a function.

__class_getitem__

See PEP 585

__contains__

Return key in self.

__delattr__

Implement delattr(self, name).

__delitem__

Delete self[key].

__dir__

Default dir() implementation.

__eq__

Return self==value.

__format__

Default object formatter.

__ge__

Return self>=value.

__getattribute__

Return getattr(self, name).

__getitem__

x.__getitem__(y) <==> x[y]

__getstate__

Helper for pickle.

__gt__

Return self>value.

__iadd__

Implement self+=value.

__imul__

Implement self*=value.

__init__

__init_subclass__

This method is called when a class is subclassed.

__iter__

Implement iter(self).

__le__

Return self<=value.

__len__

Return len(self).

__lt__

Return self<value.

__mul__

Return self*value.

__ne__

Return self!=value.

__new__

__reduce__

Helper for pickle.

__reduce_ex__

Helper for pickle.

__repr__

Return repr(self).

__reversed__

Return a reverse iterator over the list.

__rmul__

Return value*self.

__setattr__

Implement setattr(self, name, value).

__setitem__

Set self[key] to value.

__sizeof__

Return the size of the list in memory, in bytes.

__str__

Return str(self).

__subclasshook__

Abstract classes can override this to customize issubclass().

append

Append object to the end of the list.

clear

Remove all items from list.

copy

Return a shallow copy of the list.

count

Return number of occurrences of value.

extend

Extend list by appending elements from the iterable.

index

Return first index of value.

insert

Insert object before index.

pop

Remove and return item at index (default last).

remove

Remove first occurrence of value.

reverse

Reverse IN PLACE.

sort

Sort the list in ascending order and return None.

__init__(*, future=None, n=1)[source]

Attributes

__annotations__

__dict__

__doc__

__hash__

__module__

__weakref__

list of weak references to the object

__init__(*, future=None, n=1)[source]
__call__(future)[source]

Call self as a function.

__annotations__ = {}
__dict__ = mappingproxy({'__module__': 'schedula.utils.asy', '__doc__': 'List of asynchronous results.', '__init__': <function AsyncList.__init__>, '__call__': <function AsyncList.__call__>, '__dict__': <attribute '__dict__' of 'AsyncList' objects>, '__weakref__': <attribute '__weakref__' of 'AsyncList' objects>, '__annotations__': {}})
__doc__ = 'List of asynchronous results.'
__module__ = 'schedula.utils.asy'
__weakref__

list of weak references to the object