tree data structure

Mark McEahern marklists at mceahern.com
Fri Sep 6 09:38:06 EDT 2002


>      for key, value in original:
>          if map.has_key(key):
>              map[key].append(value)
>          else:
>              map[key] = [value]

Minor nit:  Best not to use the name of a builtin (map).

// m
-





More information about the Python-list mailing list