[Python-ideas] descriptors outside of classes

Don Spaulding donspauldingii at gmail.com
Wed Mar 30 23:40:06 CEST 2011

On Wed, Mar 30, 2011 at 3:26 PM, Raymond Hettinger <
raymond.hettinger at gmail.com> wrote:
> Since eval/exec can use arbitrary mappings for locals, you can use your
> custom dictionary while executing arbitrary python code.  Essentially,
> you're executing python code in an environment where the lookup function for
> locals has been trained to handle your custom descriptor protocol.
I just signed up for python-ideas a month or two ago, how many awesome(ly
dangerous) hacks like this have I missed over the years?

About-to-eval-away-the-next-six-months-ly yours,
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-ideas/attachments/20110330/bfe150c1/attachment.html>

More information about the Python-ideas mailing list