python bijection

Steven D'Aprano steve at REMOVE-THIS-cybersource.com.au
Sat Dec 5 00:18:09 EST 2009


On Sat, 05 Dec 2009 11:42:15 +1100, Lie Ryan wrote:

> I think this could be an interpretation of the Zen:
> 
> Simple is better than complex.
> Complex is better than complicated.
> 
> can be read as:
> List is better than Tree

Because O(N) searches are better than O(log N) searches. Not.

How about "The right tool for the right job"?


> Tree is better than Graph
> 
> not having Tree and Graph package in the standard library force most
> people to find List-based solution.

If you have to be *forced* to use a list-based solution, that's a good 
sign that a list is *not* the right tool for the job.




-- 
Steven



More information about the Python-list mailing list