<div dir="ltr">I wouldn't modify the way for/else behaves btw. I would either:<div>1. rename the "else" to something else for "for" and "while" loops</div><div>2. remove the syntax altogether. 2to3 or 3to4 can do this by changing a boolean before the "break" statement for example.<br>
<br></div><blockquote class="gmail_quote" style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0.8ex; border-left-width: 1px; border-left-color: rgb(204, 204, 204); border-left-style: solid; padding-left: 1ex; ">
<span class="Apple-style-span" style="font-family: arial, sans-serif; font-size: 13px; border-collapse: collapse; ">expectations of </span>those unwilling to learn the language</blockquote><div>I can tell you I love python and of course many newcomers will/do too. I'm just noting that this might be a pimple worth popping.</div>
<div> </div><div><br></div><div>One more thing, I have to clear django's name as it doesn't have a for/else construct, it has a for/empty construct that was inspired by a popular for/else django template recipe entitled:</div>
<blockquote class="gmail_quote" style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0.8ex; border-left-width: 1px; border-left-color: rgb(204, 204, 204); border-left-style: solid; padding-left: 1ex; ">
"for" template tag with support for "else" if array is empty</blockquote><div><br></div><div>(thanks for pointing that out Karen)</div><div><br></div><div><div class="gmail_quote">On Thu, Oct 1, 2009 at 4:35 AM, alex23 <span dir="ltr"><<a href="mailto:wuwei23@gmail.com">wuwei23@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;"><div class="im">On Oct 1, 11:07 am, Yuvgoog Greenle <<a href="mailto:ubershme...@gmail.com">ubershme...@gmail.com</a>> wrote:<br>

> To make things worse, it's not that newcomers will say "hmm, what does this<br>
> for/else thing do? lets look at the manual", they will mistakenly assume<br>
> they understand what the construct means.<br>
<br>
</div>-1 for modifying Python to meet the "intuitive" expectations of those<br>
unwilling to learn the language.<br>
_______________________________________________<br>
Python-ideas mailing list<br>
<a href="mailto:Python-ideas@python.org">Python-ideas@python.org</a><br>
<a href="http://mail.python.org/mailman/listinfo/python-ideas" target="_blank">http://mail.python.org/mailman/listinfo/python-ideas</a><br>
</blockquote></div><br></div></div>