python bijection

Lie Ryan lie.1296 at gmail.com
Sat Dec 5 07:06:15 EST 2009


On 12/5/2009 4:18 PM, Steven D'Aprano wrote:
>> 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.

Sorry for putting too much emphasis on the "forced", that wasn't my 
intention. I was mentioning that often simple problems appeared more 
complex because the person was thinking in a higher level data structure 
than is necessary. "forced" in that sentence means to let people to 
think a little bit harder with list/dict before deciding that they are 
unsuitable and moving to a tree or a graph.



More information about the Python-list mailing list