<br>Generators and iterators are laziness where you tend to need laziness the most.  Generator expressions are tiny generators - more full fledged generators are supported.<br><br>Python probably won't have laziness at its core ever, but it's nice having a dose of it.  IOW, you probably won't be able to write a sort routine, and use it as a "first 100 lowest values" routine for free.  But you could construct something that does almost the same thing lazily using a generator - not for free.<br>
<br><div class="gmail_quote">On Sat, May 5, 2012 at 9:19 PM, Emeka <span dir="ltr"><<a href="mailto:emekamicro@gmail.com" target="_blank">emekamicro@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<br clear="all"><div>Hello All,</div><div><br></div><div>Could one say that generator expressions and functions are Python way of introducing Lazy concept?</div><div><br></div><div>Regards, \Emeka </div><span class="HOEnZb"><font color="#888888">-- <br>
<i>Satajanus  Nig. Ltd<br>

<br><br></i><br>
</font></span><br>--<br>
<a href="http://mail.python.org/mailman/listinfo/python-list" target="_blank">http://mail.python.org/mailman/listinfo/python-list</a><br>
<br></blockquote></div><br>