Cool Python "spreadsheet"

Use eval() to drive spreadsheet style logic. The sleeper feature of Py2.4 is the ability to use any object with a mapping interface as the locals argument to eval().

Cute Python language hack.

Languages that allow you to hook into their variable lookup logic open the door to many cool hacks.

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.

is this hooking into variable lookup?

I don't think so. To me it seems a normal defnition of the 'dictionary-like' operator.
It would have been variable lookup hooking if the author used __setattr__( __getattr__, __set__, __getattribute__, __get__, __del__, whatever)

Ruby meanderings

Related to this subject is Slowing Down Calculations, an implementation in Ruby with the question of delaying calculations for the purpose of maintaining cell dependency.