brainwagon "There is much pleasure in useless knowledge." — Bertrand Russell


Spreadsheet, a cute Python hack…

The Python Cookbook has a new entry which I thought was especially clever, and perhaps the only really good use of eval that I've ever seen. It is a class which simulates a spreadsheet. It is clever because it uses a class which simulates a dictionary as an environment in which to evaluate expressions. Quite clever, and very short.

Filed under: Python Comments Off
Comments (0) Trackbacks (0)

Sorry, the comment form is closed at this time.

No trackbacks yet.