[Tutor] dictionary vs. list considerations

dman dsh8290@rit.edu
Tue, 18 Dec 2001 10:47:34 -0500


On Sun, Dec 16, 2001 at 03:36:40PM -0600, Rob McGee wrote:
| For what I want to do a dictionary would be a little easier to use, but
| a list could suffice. What kind of considerations (such as performance
| and memory use) are there in deciding which to use? I don't mind having
| a little bit more code (to retrieve my objects out of a list) if it's
| faster or uses less memory than a dictionary.

Which one better embodies the conceptual structure you want to use?
Which one will make the code more readable and easier?  

-D

-- 

Python is executable pseudocode. Perl is executable line noise.