On 8/3/07, <b class="gmail_sendername">Facundo Batista</b> <<a href="mailto:facundobatista@gmail.com">facundobatista@gmail.com</a>> wrote:<div><span class="gmail_quote"></span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
2007/8/3, Andrew Bennetts <<a href="mailto:andrew-pythondev@puzzling.org">andrew-pythondev@puzzling.org</a>>:<br><br>> I don't really think there's much reason to make "iter()" work. As you say,
<br><br>What bad thing could happen if we make iter() work? If nothing, we<br>should ask ourselves: which is the more intuitive behaviour to expect<br>of iter()? To raise an exception or to return an empty iterator?<br><br>
I'm +0 for the latter.<br></blockquote></div><br>-1. I'm a heavy user of iterators on finite and infinite streams and, for me, iter() is an error that I do not want to paper over. The alternate logic implies, e.g
., len() should return 0.<br><br>-Kevin<br><br>