<br><br><div><span class="gmail_quote">On 7/17/06, <b class="gmail_sendername">Guido van Rossum</b> &lt;<a href="mailto:guido@python.org">guido@python.org</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;">
Hm. Your objections seem to be purely from a performance tuning POV. I<br>think that if we agree that API-wise this is an improvement (fewer<br>things to learn, set literals problem solved, and dicts grow some<br>useful new methods) we should make a decision to do it and damn the
<br>tuning (I trust Raymond will find a way :-).</blockquote><div><br>+1<br><br>Raymond always finds a way. <br><br>- C<br></div><br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
--Guido<br><br>On 7/17/06, Michael Chermside &lt;<a href="mailto:mcherm@mcherm.com">mcherm@mcherm.com</a>&gt; wrote:<br>&gt; Guido writes:<br>&gt; &gt; I've also sometimes thought of unifying dicts and sets by implementing
<br>&gt; &gt; set operations on the keys of dicts only.<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp; [... much discussion ...]<br>&gt; &gt; I'm still very much undecided but I don't want to rule this out for<br>&gt; &gt; py3k. Perhaps I'll write up a PEP and see how it flies.
<br>&gt;<br>&gt; Playing with it, and PEPing it both sound fine, but I think DOING it<br>&gt; seems like a bad idea.<br>&gt;<br>&gt; I see two advantages. One is public: it solves the issue of a set<br>&gt; literal. The other is private: it allows us to reuse the implementation.
<br>&gt;<br>&gt; Fixing the set literal just isn't sufficient justification, IMHO. And<br>&gt; as for the implementation, we care VERY much about perfectly tuning<br>&gt; the performance of the dict type, because its performance is so key to
<br>&gt; the implementation of namespaces throughout Python. So I would not want<br>&gt; to accept any unnecessary restrictions on the implementation that might<br>&gt; constrain future optimizations of dict performance.<br>
&gt;<br>&gt; Besides, how difficult is it to maintain the existing C implementation<br>&gt; of set and frozenset (now that they're written and have been through<br>&gt; the wringer of being in a production release). It's not zero cost, but
<br>&gt; it's also probably not THAT big.<br>&gt;<br>&gt; Of course, that's the idea behind trying it out and even writing a PEP<br>&gt; -- then we'll see whether my guess (or yours!) is correct.<br>&gt;<br>&gt; -- Michael Chermside
<br>&gt;<br><br><br>--<br>--Guido van Rossum (home page: <a href="http://www.python.org/~guido/">http://www.python.org/~guido/</a>)<br>_______________________________________________<br>Python-3000 mailing list<br><a href="mailto:Python-3000@python.org">
Python-3000@python.org</a><br><a href="http://mail.python.org/mailman/listinfo/python-3000">http://mail.python.org/mailman/listinfo/python-3000</a><br>Unsubscribe: <a href="http://mail.python.org/mailman/options/python-3000/monpublic%40gmail.com">
http://mail.python.org/mailman/options/python-3000/monpublic%40gmail.com</a><br></blockquote></div><br><br clear="all"><br>-- <br>C