<div class="gmail_quote"><div>First of all - hello python-ideas. I liked the look of the archives, so I thought I'd chip in, if it's OK.</div><div> </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; ">
<div class="gmail_quote"><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; ">
<div><span style="background-color: transparent; ">And what about:</span></div><br> <f locals>.g<br>and<br> <<xyzzy locals>.f locals>.g<br></blockquote><div><br>In the end I like the non-nested version better. <br>
</div></div></blockquote></div><div><font face="'courier new', monospace">xyzzy.<local f>.<local g></font></div><div><font face="'courier new', monospace">or, preferably,</font></div><div><span style="font-family: 'courier new', monospace; ">xyzzy.<instance.f>.<instance.g></span></div>
<div><span style="background-color: transparent; ">It's non-nested, shows the locality and maps the locality to the variable.</span></div><div><span style="background-color: transparent; "><br></span></div><div>If not showing function instances is disliked, maybe drop the period between the function and "<locals>" from yours:</div>
<div><font face="'courier new', monospace">xyzzy<locals>.f<locals>.g</font></div><div><font face="'courier new', monospace">or, again,</font></div><div><span style="font-family: 'courier new', monospace; ">xyzzy<instance>.f<instance>.g</span></div>
<div><span style="font-family: 'courier new', monospace; "><br></span></div><div><font face="arial, helvetica, sans-serif">I think this is just cleaner than:</font></div><div><font face="'courier new', monospace">xyzzy.<locals>.f.<locals>.g</font></div>
<div><font face="arial, helvetica, sans-serif">because it doesn't imply that xyzzy has a single set of locals - especially using <instance>.</font></div>