Michele Petrazzo wrote:

> I want to execute an external code, that become from a text file (pe),
> call a function inside it and get its return value:

namespace = {}
execfile("ext_code.txt", namespace)
print namespace["funct2Call"]()

Peter
-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to