<br><br><div class="gmail_quote">On 4 July 2011 22:08, Antoine Pitrou <span dir="ltr"><<a href="mailto:solipsis@pitrou.net">solipsis@pitrou.net</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
On Mon, 4 Jul 2011 21:41:33 +0200<br>
"Amaury Forgeot d'Arc"<br>
<div class="im"><<a href="mailto:amauryfa@gmail.com">amauryfa@gmail.com</a>> wrote:<br>
> Hi,<br>
><br>
> 2011/7/4 Antoine Pitrou <<a href="mailto:solipsis@pitrou.net">solipsis@pitrou.net</a>>:<br>
> > Le lundi 04 juillet 2011 à 10:52 -0700, Gregory P. Smith a écrit :<br>
> >> note that a fast lookup implies exact type and not subclass making my<br>
> >> point silly... at which point you're back to iterating so I suspect<br>
> >> supporting arbitrary iterables is actually how this will be<br>
> >> implemented regardless.<br>
> ><br>
> > Indeed. Note that the tuple case should remain fast, and therefore<br>
> > special-cased (or the general list/tuple case, since the difference in C<br>
> > is rather small).<br>
><br>
> Arbitrary iterables, arbitrarily nested...<br>
> beware of objects which are also their first element, like str('a')...<br>
<br>
</div>Ouch. I guess that shoots the proposal dead in the water, then.<br>
<br></blockquote><div><br></div><div>Why? Iteration doesn't imply recursing into contained iterators. </div><div><br></div><div>Michael</div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">

Regards<br>
<font color="#888888"><br>
Antoine.<br>
</font><div><div></div><div class="h5"><br>
<br>
_______________________________________________<br>
Python-ideas mailing list<br>
<a href="mailto:Python-ideas@python.org">Python-ideas@python.org</a><br>
<a href="http://mail.python.org/mailman/listinfo/python-ideas" target="_blank">http://mail.python.org/mailman/listinfo/python-ideas</a><br>
</div></div></blockquote></div><br><br clear="all"><br>-- <br><pre cols="72"><a href="http://www.voidspace.org.uk/" target="_blank">http://www.voidspace.org.uk/</a><br><br>May you do good and not evil<br>May you find forgiveness for yourself and forgive others<br>
May you share freely, never taking more than you give.<br>-- the sqlite blessing <a href="http://www.sqlite.org/different.html" target="_blank">http://www.sqlite.org/different.html</a></pre>
<br>