A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from http://mail.python.org/pipermail/python-dev/attachments/20120702/8550f12c/attachment.html below:

<html><head></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><br><div><div>On Jul 1, 2012, at 5:01 AM, Stefan Behnel wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite"><span class="Apple-style-span" style="border-collapse: separate; font-family: Helvetica; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: -webkit-auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; font-size: medium; ">To address the main problem of users not finding what they need, what about<br>simply extending the docstring of the grouper()</span></blockquote><br></div><div><br></div><div>Here's &nbsp;a small change to the docstring: &nbsp;<a href="http://hg.python.org/cpython/rev/d32f21d87363">http://hg.python.org/cpython/rev/d32f21d87363</a></div><br><div>FWIW, if you're interested in load balancing applications, George Sakkis's itertools&nbsp;</div><div>recipe for&nbsp;roundrobin() may be of interest.</div><div><br></div><div>Another interesting iterator technique that is not well known is&nbsp;the two-argument&nbsp;</div><div>form of iter() which is a marvel for transforming callables into iterators:</div><div><br></div><div>&nbsp; &nbsp; for block in iter(partial(f.read, 1024), ''):</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;...</div><div><br></div><div>&nbsp; &nbsp; for diceroll in iter(partial(randrange(1, 7), 4):</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;...</div><div><br></div><div><br></div><div>Raymond</div></body></html>

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4