<br><br><div><span class="gmail_quote">On 11/1/06, <b class="gmail_sendername">Guido van Rossum</b> &lt;<a href="mailto:guido@python.org">guido@python.org</a>&gt; wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
On 11/1/06, Neil Toronto &lt;<a href="mailto:ntoronto@cs.byu.edu">ntoronto@cs.byu.edu</a>&gt; wrote:<br>&gt; Ka-Ping Yee wrote:<br>&gt; &gt; I have finally completed a draft of a PEP on rebinding of names<br>&gt; &gt; in outer scopes.&nbsp;&nbsp;I've tried to go back and gather all of the
<br>&gt; &gt; (amazingly numerous) proposals -- if i've forgotten or misattributed<br>&gt; &gt; any, let me know and i'll be happy to correct them.<br><br>&gt; It's beautiful. Like Michael said, an impressive amount of history.
<br><br>Agreed.<br><br>&gt; I wondered about this specifically:<br>&gt;<br>&gt;&nbsp;&nbsp;&gt; A shorthand form is also permitted, in which nonlocal is prepended to<br>&gt;&nbsp;&nbsp;&gt; an assignment or augmented assignment statement:<br>
&gt;&nbsp;&nbsp;&gt;<br>&gt;&nbsp;&nbsp;&gt;&nbsp;&nbsp;&nbsp;&nbsp; nonlocal x = 3<br>&gt;<br>&gt; Is a similar statement for globals legal in Py3k? It's not in 2.4<br>&gt; (according to my own testing) or 2.5 (according to the grammar). The<br>&gt; syntax for 'global' and 'nonlocal' should be almost identical.
<br><br>It's been proposed and I would endorse it.<br><br>My personal preference is still to abuse 'global' instead of adding a<br>new, ugly keyword. That would make the syntax for global and nonlocal<br>completely identical. :-) But I seem to be alone in this preference.
<br>:-(</blockquote><div><br>Seeing Guido have a sad face is enough to force me to have an opinon.&nbsp; I personally always viewed 'global' as &quot;this variable is not local&quot;, so making it truly mean that works for me.&nbsp; Otherwise I would like the 'free' keyword (I understand why Ping prefers 'nonlocal', but i just don't like it without a hyphen in it and that isn't about to happen and I have no problem going with the lambda calculus terminology).
<br><br>Then again Guido could still get his way since this could end up being quite the little argument as demonstrated by the list of possible keyword names and thus require a BDFL pronouncement the way Guido wants it.&nbsp; =)
<br><br>-Brett<br></div><br></div><br>