[Python-ideas] Add OrderedSet now that OrderedDict is in collections

Arnaud Delobelle arnodel at googlemail.com
Sat May 9 16:15:53 CEST 2009


On 9 May 2009, at 11:17, spir wrote:
> I feel the same. Unorder (like in dict or set) is not a feature, I 
> guess. Set is useful for it ensures uniqueness of items, not because 
> of unorder.

That is one reason why sets are useful. Another reason, which is at 
least as important, is that {1,2}=={2,1} is true - and that's 
precisely because the elements are not ordered. So absence of order 
is definitely a useful feature.
-- 
Arnaud
 


More information about the Python-ideas mailing list

AltStyle によって変換されたページ (->オリジナル) /