Objects in Python

Chris Angelico rosuav at gmail.com
Sun Aug 26 02:22:05 EDT 2012


On Sun, Aug 26, 2012 at 3:45 PM, Evan Driscoll <driscoll at cs.wisc.edu> wrote:
> Third, and more wackily, you could technically create a C implementation
> that works like Python, where it stores variables (whose addresses aren't
> taken) in a dict keyed by name, and generates code that on a variable access
> looks up the value by accessing that dict using the name of the variable.

That would be a reasonable way to build a C interactive interpreter.

ChrisA



More information about the Python-list mailing list