
No so small as the calculator, but small enough (120 lines of code).
It can do any Python expression as a formula, support cell reference and ranges.
If it won't be simple, it simply won't be. [Hire me, source code] by Miki Tebeka, CEO, 353Solutions
def f():and you run it, nothing is printed.
print "F"
yield 1
if __name__ == "__main__":
f()