Bug in 2.2.2 ???
mark.vantassel at visionarysystemsinc.com
Fri Feb 7 14:53:36 CET 2003
The following code seems to crash running 2.2.2 (under windows)...
int main(int argc, char* argv)
char * crash_it =
" def anyfunc(self,info):\n"
char * dont_crash_it =
PyObject * dict = PyDict_New();
PyDict_SetItemString( dict, "__builtins__", PyEval_GetBuiltins() );
PyObject * rslt = PyRun_String( crash_it, Py_file_input, dict, dict );
Py_Initialize(); // this fails
Can anyone see anything wrong with this? Is this a known problem?
More information about the Python-list