>> I follow the advice Guido gave: I use the data >> structure that will make my code shortest and easiest >> to read, > > But given a choice such as list vs. dict, the code > is almost identical either way. What do you do then?
Why do you say that? Lists and dictionaries are *completely* different things, not interchangeable at all. > Toss a coin? Or make a few educated guesses based on > what you know about each data type? I look at my problem, and the choice of container falls out of that naturally. Regards, Martin _______________________________________________ Python-Dev mailing list Python-Dev@python.org http://mail.python.org/mailman/listinfo/python-dev Unsubscribe: http://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com