>From a python's user point of view. a sorted dict/set/list was sometimes a requirement for me. Basically. a dictionary that had a BTree implementation instead of a hash table. Also. having an explicit type error would then be a clear indication that you have something wrong in your implementattion (and therefore useful indication). 
<br>Other languages have separate collection frameworks like C# has powercollections. Having these collections as part of the standard library is another issue though.<br><div><span class="gmail_quote">On 9/15/07, <b class="gmail_sendername">
Arvind Singh</b> &lt;<a href="mailto:arvind1.singh@gmail.com">arvind1.singh@gmail.com</a>&gt; wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<span class="q"><div><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"> I hope that Python gets a sorteddict and a<br>sortedset. </blockquote>
</div><br></span>It doesn&#39;t make sense for Python to have sorteddict or
sortedset. You see, dict can have&nbsp; keys which cannot be
ordered (keys can be heterogeneous, in which case Py3K may raise TypeError; ordering doesn&#39;t make sense for the objects used as keys) and
same goes for set elements.<br>
<br>
Sorting makes sense only as a run-time operation, in which case, the programmer should be prepared to handle appropriate exceptions.<br clear="all"><br>Btw, would you like a dict or set for which you have to handle exceptions at every insertion?
<br><br>-- <br>Regards,<br><span class="sg">Arvind
</span><br>_______________________________________________<br>Python-3000 mailing list<br><a onclick="return top.js.OpenExtLink(window,event,this)" href="mailto:Python-3000@python.org">Python-3000@python.org</a><br><a onclick="return top.js.OpenExtLink(window,event,this)" href="http://mail.python.org/mailman/listinfo/python-3000" target="_blank">
http://mail.python.org/mailman/listinfo/python-3000</a><br>Unsubscribe: <a onclick="return top.js.OpenExtLink(window,event,this)" href="http://mail.python.org/mailman/options/python-3000/nevillegrech%40gmail.com" target="_blank">
http://mail.python.org/mailman/options/python-3000/nevillegrech%40gmail.com</a><br><br></blockquote></div><br><br clear="all"><br>-- <br>Regards,<br>Neville Grech