<p>def anaphor(x):<br>
  return (x,) if x else ()</p>
<p>for foo in anaphor(bar):<br>
   ...</p>
<p>--- Bruce<br>
(via android)</p>
<p><blockquote type="cite">On Apr 23, 2010 4:18 PM, "Chris Rebert" <<a href="mailto:pyideas@rebertia.com">pyideas@rebertia.com</a>> wrote:<br><br><p><font color="#500050">On Fri, Apr 23, 2010 at 1:47 PM, Andrey Fedorov <<a href="mailto:anfedorov@gmail.com">anfedorov@gmail.com</a>> wrote:<br>
> I imagine this has be...</font></p>Master Yoda had me google "python-ideas if assignment", which was fruitful:<br>
<br>
[Python-ideas] Inline assignment expression:<br>
<a href="http://mail.python.org/pipermail/python-ideas/2009-March/003423.html" target="_blank">http://mail.python.org/pipermail/python-ideas/2009-March/003423.html</a><br>
<br>
Post in same thread summarizing rejection reasons:<br>
<a href="http://mail.python.org/pipermail/python-ideas/2009-March/003440.html" target="_blank">http://mail.python.org/pipermail/python-ideas/2009-March/003440.html</a><br>
<br>
Cheers,<br>
Chris<br>
<font color="#888888">--<br>
The moratorium makes this pointless anyways.<br>
<a href="http://blog.rebertia.com" target="_blank">http://blog.rebertia.com</a><br>
</font><p><font color="#500050">_______________________________________________<br>Python-ideas mailing list<br><a href="mailto:Python-ideas@python.org">Python-ideas@python.org</a><br>ht...</font></p></blockquote></p>