Re: how to change a script while it is running
Hi ! Try : def ff(a): print a*2 ff(111) exec('''def ff(a): print a*3 ''',globals(),globals()) ff(111) @-salutations Michel Claveau -- http://mail.python.org/mailman/listinfo/python-list
how to change a script while it is running
Hi, I would like to know if it is possible to change code on the fly on a python interpreter. I want to have a python script running a multithread server and be able to connect to this python script and change the interpreter environment. Is this possible? Ideally i would like to call python, lo