Embedded Python Problem....

Adrian Eyre a.eyre at optichrome.com
Tue May 25 08:09:14 EDT 1999


> 	res = PyRun_String("print 'Hello'", 0, Py_None, Py_None);

IIRC, Python expects the last two parameters to be either references
to namespace dictionaries, or NULL. Try:

  	res = PyRun_String("print 'Hello'", 0, NULL, NULL);

--------------------------------------------
Adrian Eyre <mailto:a.eyre at optichrome.com>
Optichrome Computer Solutions Ltd
Maybury Road, Woking, Surrey, GU21 5HX, UK
Tel: +44 1483 740 233  Fax: +44 1483 760 644
http://www.optichrome.com 
--------------------------------------------





More information about the Python-list mailing list