Enums and Python

Courageous jkraska1 at san.rr.com
Wed Jun 21 03:20:48 EDT 2000


> I am using dictionaries somewhat but sometimes is it hard to know which data
> structure is best.

You use a dictionary when you want to quickly look up something
based on its identity or something you associate with it's identity.

You use lists for, well, just about everything else (in particular
for things which you want to keep in order, or which you might
wish to access by a fixed position in the list, i.e., the nth
item).

C/



More information about the Python-list mailing list