[C++-sig] Reloading Functions

Jared McIntyre Jared.McIntyre at medsimulation.com
Tue Apr 10 22:21:00 CEST 2007


Thanks for the help. I don't know what I was doing when I tested it the
first time, but it works now. I'm guessing it was a PEBKAC problem.

Jared

-----Original Message-----
From: c++-sig-bounces at python.org [mailto:c++-sig-bounces at python.org] On
Behalf Of Stefan Seefeld
Sent: Tuesday, April 10, 2007 2:06 PM
To: Development of Python/C++ integration
Subject: Re: [C++-sig] Reloading Functions

exec_file should execute the file (and put all symbols into 'global',
each
time it is called, no matter whether the file has the same content as
the last
time you called it.
If you don't want to preserve the content of 'global', there is no need
to reuse
that, i.e. you could use a different dictionary on each invocation.

Regards,
		Stefan


-- 

      ...ich hab' noch einen Koffer in Berlin...



More information about the Cplusplus-sig mailing list