[C++-sig] Reloading Functions

Nat Goodspeed ngoodspeed at solidworks.com
Tue Apr 10 21:41:11 CEST 2007


________________________________________
From: c++-sig-bounces at python.org [mailto:c++-sig-bounces at python.org] On
Behalf Of Jared McIntyre
Sent: Tuesday, April 10, 2007 3:02 PM
To: c++-sig at python.org
Subject: [C++-sig] Reloading Functions

Now I can run greet() just fine. However, we need to be able to make
changes in the greet script while the system is running, and swap the
old with the new. Calling the exec_file again won't replace the function
with the new version. Is there a way to do this without tearing down the
entire python runtime and restarting it?

[Nat] Call the Python reload() builtin?

http://docs.python.org/lib/built-in-funcs.html#l2h-61



More information about the Cplusplus-sig mailing list