Yeah, I figured as much.  I am sure there is some convoluted way to make it work, but it would not nearly be worth it for what we would get out of it.<div><br></div><div>-eric<br><br><div class="gmail_quote">On Tue, Mar 29, 2011 at 10:07 PM, Nick Coghlan <span dir="ltr"><<a href="mailto:ncoghlan@gmail.com">ncoghlan@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 Wed, Mar 30, 2011 at 3:59 AM, Eric Snow <<a href="mailto:ericsnowcurrently@gmail.com">ericsnowcurrently@gmail.com</a>> wrote:<br>

> Here's another outlandish idea.  How about if descriptors could be used<br>
> outside of classes.  I.e. any global or local variable could be assigned a<br>
> descriptor object and the descriptor protocol would be respected for that<br>
> variable.  This would be a pretty messy change, and I have no illusions that<br>
> the idea will go anywhere.  However, would there be room for this in python?<br>
<br>
</div>Not really, because globals() both promises to return a normal<br>
dictionary and to respect changes to the module globals made via that<br>
dictionary.<br>
<br>
All bets are off with locals(), but the globals() aspect already<br>
spikes the idea, as it does many other ideas to do with speeding or<br>
otherwise enhancing namespace lookups.<br>
<br>
Cheers,<br>
Nick.<br>
<font color="#888888"><br>
--<br>
Nick Coghlan   |   <a href="mailto:ncoghlan@gmail.com">ncoghlan@gmail.com</a>   |   Brisbane, Australia<br>
</font></blockquote></div><br></div>