Python not a Very High-Level Language?

Tres Seaver tseaver at aftershock.neosoft.com
Mon Jan 3 12:43:11 EST 2000


In article <3870DB37.761034EA at roguewave.com>,
bjorn  <bjorn at roguewave.com> wrote:
>Aahz Maruch wrote:
>
>> In article <386E7BD4.514764EA at ndh.net>,
>> Stefan Schwarzer  <s.schwarzer at ndh.net> wrote:
>> >
>> >The other topics which the author on the O'Reilly site, Greg Wilson,
>> >mentions might also be worth considering. For example, I never needed
>> >tuples (explicitly) yet, i. e. in a sense that lists would not work.
>> >(If tuples would be taken out of the language or their use deprecated)
>> >tuple un/packing would become list un/packing and so on.)
>>
>> Anyone who claims that tuples are unnecessary has never used a tuple as
>> a dict key.  That requirement necessitates differentiating between a
>> mutable and immutable list -- might as well stick with tuples.
>> --
>
>So what you're saying is that dicts are broken since they can't take
>lists as keys <wink>.

What reasonable use can you propose for an associative container which allows
mutable keys?  You might as well revert to a list of (key,value) pairs, since
you're going to do a linear search on each lookup anyway if the keys are
allowed to change.

>
>undefined-behavior-isn't-always-bad'ly y'rs

I-want-a-word-to-mean-exactly-what-I-meant-when-I-said-it'ly

(Hmmm, TweedleDum/Dee as Pythonistas?)
-- 
---------------------------------------------------------------
Tres Seaver           tseaver at palladion.com       713-523-6582
Palladion Software    http://www.palladion.com



More information about the Python-list mailing list