Enums and Python
Courageous
jkraska1 at san.rr.com
Wed Jun 21 03:20:48 EDT 2000
More information about the Python-list mailing list
Wed Jun 21 03:20:48 EDT 2000
- Previous message (by thread): Enums and Python
- Next message (by thread): Enums and Python
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
> 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/
- Previous message (by thread): Enums and Python
- Next message (by thread): Enums and Python
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
More information about the Python-list mailing list