[web2py] Storing Python code in db?

2013-01-18 Thread Kenny Chung
I am testing out to store Python code and run it by extracting it from the database. It looks simple but it's giving me a weird error. *//Code* {{a=row.temp}} //question.temp is "def f(x):\nx = x + 1\ny = 10\n return x + y" same as below {{b="def f(x):\nx = x + 1\ny = 10\nretu

Re: [web2py] Storing Python code in db?

2013-01-19 Thread Bruno Rocha
http://docs.python.org/2/library/pickle.html http://python.about.com/od/pythonstandardlibrary/a/pickle_intro.htm --