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/20180420/0e7ab29d/attachment.html below:

<div dir="ltr">If you restrict the idea to 'if' and 'while', Why not render this using the existing 'as' form for binding names, already used with 'except' and 'with':<div><br></div><div><span style="color:rgb(80,0,80);font-size:12.800000190734863px">  Â  while learner.get(static_hint) as points:</span></div><div><span style="color:rgb(80,0,80);font-size:12.800000190734863px">  Â  Â  Â  learner.feed(f(points))</span><br><div><br></div><div>The equivalent for 'if' helps with the regex matching case:</div><div><br></div><div>  Â  if re.match(r"...") as m:</div><div>  Â  Â  Â  print(m.group(1))</div><div><br></div><div>I considered proposing these two forms in a PEP a few years ago, but never got around to it. To my eye, they fit syntactically into the language as-is, without introducing new symbols, operators or keywords, are consistent with existing usage, and address two relatively common causes of displeasing Python code.</div><div>  Â  Â  Â Â </div></div><div>Robert</div><div class="gmail_extra"><div><div class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><div><font size="1"><font color="#0b5394"></font></font></div></div></div></div>
<br></div></div>

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