Trees | Indices | Help |
|
---|
|
Operations on dictionaries.
Version: $Revision: 1.9 $
Classes | |
BadFileFormatError This indicates a problem when reading in a dictionary via read2c. |
|
dict_of_lists A dictionary of lists. |
|
dict_of_sets A dictionary of lists. |
|
dict_of_accums A dictionary of accumulators. |
|
dict_of_averages A dictionary of accumulators. |
|
dict_of_maxes A dictionary of maxima. |
|
dict_of_X A dictionary of arbitrary things. |
|
list_of_dicts |
Functions | |||
dict |
|
||
dict |
|
||
dict |
|
||
|
|||
dict |
|
||
dict
|
|
||
tuple(dict(str:str), list(str)) |
|
||
|
|||
|
|||
|
|||
|
Variables | |
__package__ = None hash(x) |
Function Details |
Passes through items listed in l.
|
Removes items listed in l.
|
|
Reverse a 1-1 mapping so it maps values to keys instead of keys to values.
|
Compose two mappings (dictionaries) into one.
|
Read in a dictionary from a two-column file; columns are separated by whitespace. This is not a completely general format, because keys cannot contain whitespace and the values cannot start or end in whitespace. The format can contain comments at the top; these are lines that begin with a hash mark (#). Empty lines are ignored.
Note: You can get into trouble if you have a key that starts with a hash mark (#). If it happens to be the first key, and if there are no comments or if it directly follows a comment, it will be interpreted as a comment. To avoid this possibility, begin your file with a comment line, then a blank line. |
For a dictionary of key=value pairs, return the key with the largest value.
Note: When there are several equal values, this will return a single, arbitrary choice. |
OBSOLETE: replace with class dict_of_lists. Add an entry to a dictionary of lists. A new list is created if necessary; else the value is appended to an existing list. Obsolete: replace with dict_of_lists. |
OBSOLETE: replace with class dict_of_accums. Add an entry to a dictionary of counters. A new counter is created if necessary; else the value is added to an existing counter. Obsolete: replace with dict_of_accums. |
Trees | Indices | Help |
|
---|
Generated by Epydoc 3.0.1 on Thu Sep 22 04:25:02 2011 | http://epydoc.sourceforge.net |