<p dir="ltr">On 4 May 2013 19:48, "Joćo Bernardo" <<a href="mailto:jbvsmo@gmail.com">jbvsmo@gmail.com</a>> wrote:<br>
> These should generate the same "LOAD_GLOBAL" and "LOAD_DEREF" bytecodes, so "global" and "nonlocal" will not be objects nor passed as arguments.<br>
><br>
> That way you can have both "global.x", "nonlocal.x" and "x" variables without conflict.<br>
></p>
<p dir="ltr">I think the best language would work like that. But having more than one way to do it is bad for your health. So perhaps this can be the new way to do it in python 4. I'd also expect "global" to be iterable i.e. replacing "globals()".</p>

<p dir="ltr">Yuval<br></p>