<br><br><div class="gmail_quote">On 4 July 2011 21:26, Benjamin Peterson <span dir="ltr"><<a href="mailto:benjamin@python.org">benjamin@python.org</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
<div class="im">Michael Foord <fuzzyman@...> writes:<br>
> I have no *objection* to it working for arbitrary iterables, I just don't care<br>
about it.<br>
><br>
> So does this mean no-one has any objections to my suggested change? I'll<br>
create an issue.<br>
<br>
<br>
</div>Can you explain why tuple(x) is not sufficient?<br></blockquote><div><br></div><div>What is x in that case? Do you mean in the isinstance call? That adds the runtime overhead of an extra tuple call every time - plus the mental overhead of reading it every time someone looks at the code. Small maybe, but it seems like you're suggesting adding bloat...</div>
<div><br></div><div>Seriously though. Conceptually the second argument to isinstance is a set of types you want to check the object against. It would be nice if that set of types were permitted to actually be a set.</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;">
<br>
It seems like useless bloat to me.<br>
<div><div></div><div class="h5"><br>
<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>