8.26.2 KeyList class: A named item list.

A KeyList is a list of lists or tuples. Each item (sublist or tuple) should at least have 2 elements: the first one is used as a key to identify the item, but is also part of the information (value) of the item.

The KeyList class has this constructor:

class KeyList( alist=[])
Create a new KeyList, possibly filling it with data.

data should be a list of tuples/lists each having at least 2 elements. The (string value of the) first is used as the key.

KeyList objects have the following methods:

items( )
Return the key+value lists in order of the keys.