<div dir="ltr">I guess, I'm just asking for enumerate to go through the same change that range went through. Why wasn't it a problem for range?</div><br><div class="gmail_quote"><div dir="ltr">On Wed, Sep 30, 2015 at 1:18 PM Neil Girdhar <<a href="mailto:mistersheik@gmail.com">mistersheik@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Ah good point. Well, in the case of a sequence argument, an enumerate object could be both a sequence and an iterator.<span style="line-height:1.5"> </span></div><br><div class="gmail_quote"><div dir="ltr">On Wed, Sep 30, 2015 at 1:15 PM Alexander Belopolsky <<a href="mailto:alexander.belopolsky@gmail.com" target="_blank">alexander.belopolsky@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div class="gmail_extra"><br><div class="gmail_quote">On Wed, Sep 30, 2015 at 12:53 PM, Neil Girdhar <span dir="ltr"><<a href="mailto:mistersheik@gmail.com" target="_blank">mistersheik@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">A Sequence is an Iterator.</blockquote></div><br></div></div><div dir="ltr"><div class="gmail_extra">No, a Sequence is an Iterable, not an Iterator:</div><div class="gmail_extra"><br></div><div class="gmail_extra"><div class="gmail_extra">>>> issubclass(collections.Sequence, collections.Iterator)</div><div class="gmail_extra">False</div><div class="gmail_extra">>>> issubclass(collections.Sequence, collections.Iterable)</div><div class="gmail_extra">True</div></div></div>
</blockquote></div></blockquote></div>