asq.namedelements

This module contains the definition of the IndexedElement type.

IndexedElements and KeyedElement are namedtuples useful for storing index, element pairs. They are used as the default selectors by the select_with_index() and select_many_with_index(), select_with_correspondence() and select_many_with_corresponding() query methods.

asq.namedelements.IndexedElement

class asq.namedelements.IndexedElement(index, value)

The index and value of the element can be accessed via the index and value attributes.

static __new__(index, value)

Create new instance of IndexedElement(index, value)

__repr__()

Return a nicely formatted representation string

__str__()

x.__str__() <==> str(x)

asq.namedelements.KeyedElement

class asq.namedelements.KeyedElement(key, value)

The key and associated value can be accessed via the key and value attributes.

static __new__(key, value)

Create new instance of KeyedElement(key, value)

__repr__()

Return a nicely formatted representation string

__str__()

x.__str__() <==> str(x)