Re: [C++-sig] PyEval_EvalCode

2008-11-11 Thread Stefan Seefeld
Alan Baljeu wrote: I was reading some legacy code we have here, and discovered an unexpected idiom. Starting from C++, we create a dictionary, store a few named constants in there, and then call PyEval_EvalCode passing in the dictionary. The code it calls is a bunch of python files generated

[C++-sig] PyEval_EvalCode

2008-11-11 Thread Alan Baljeu
I was reading some legacy code we have here, and discovered an unexpected idiom. Starting from C++, we create a dictionary, store a few named constants in there, and then call PyEval_EvalCode passing in the dictionary. The code it calls is a bunch of python files generated from a CAD model, wi