Andr? Roberge wrote:
I have the following two files:
#--testexec.py--
def exec_code(co):
try:
exec co
except:
print "error"
#-- test.py--
import thread
import testexec
import time
code = "def a():\n print 'a'\n\n" +\
"def c():\n a()\n\nc()"
code2 = "def a():\n print '
I have the following two files:
#--testexec.py--
def exec_code(co):
try:
exec co
except:
print "error"
#-- test.py--
import thread
import testexec
import time
code = "def a():\n print 'a'\n\n" +\
"def c():\n a()\n\nc()"
code2 = "def a():\n print 'a'\n\n" +\