Package Bio :: Package EUtils :: Module MultiDict :: Class _BaseMultiDict
[show private | hide private]
[frames | no frames]

Class _BaseMultiDict

Known Subclasses:
OrderedMultiDict, UnorderedMultiDict

Method Summary
  __contains__(self, key)
check if the key exists
  __getitem__(self, key)
value for a given key
  __iter__(self)
iterate through the list of unique keys
  __len__(self)
the number of unique keys
  __str__(self)
shows contents as if this is a dictionary
  get(self, key, default)
value for the given key; default = None if not present
  getall(self, key)
Get all values for a given key
  items(self)
unordered list of key/value pairs
  keys(self)
unordered list of unique keys
  values(self)
unordered list of values

Method Details

__contains__(self, key)
(In operator)

check if the key exists

__getitem__(self, key)
(Indexing operator)

value for a given key

If more than one value exists for the key, use one added most recently

__iter__(self)

iterate through the list of unique keys

__len__(self)
(Length operator)

the number of unique keys

__str__(self)
(Informal representation operator)

shows contents as if this is a dictionary

If multiple values exist for a given key, use the last one added.

get(self, key, default=None)

value for the given key; default = None if not present

If more than one value exists for the key, use the one added most recently.

getall(self, key)

Get all values for a given key

Multiple values are returned in input order. If the key does not exists, returns an empty list.

items(self)

unordered list of key/value pairs

If more than one value exists for a given key, use the value added most recently.

keys(self)

unordered list of unique keys

values(self)

unordered list of values

If more than one value exists for a given key, use the value added most recently.

Generated by Epydoc 2.1 on Thu Jun 30 22:06:07 2005 http://epydoc.sf.net