A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://mail.python.org/pipermail/python-dev/2008-March/077558.html below:

[Python-Dev] Complexity documentation request

[Python-Dev] Complexity documentation request [Python-Dev] Complexity documentation request"Martin v. Löwis" martin at v.loewis.de
Wed Mar 12 07:52:50 CET 2008
>> 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

More information about the Python-Dev mailing list

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4