Author David Heffernan
Recipients David Heffernan, paul.moore, steve.dower, tim.golden, zach.ware
Date 2016-01-14.09:53:50
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1452765230.72.0.612722422255.issue26108@psf.upfronthosting.co.za>
In-reply-to
Content
Environment: 
 - Python 2.7.11 from python.org, x64.
 - Windows 10 or Windows 8.1
 - MSVC 2015

I compiled the most basic embedding example, taken from the Python docs:

#include <Python.h>

int
main(int argc, char *argv[])
{
  Py_SetProgramName(argv[0]);  /* optional but recommended */
  Py_Initialize();
  PyRun_SimpleString("from time import time,ctime\n"
                     "print 'Today is',ctime(time())\n");
  Py_Finalize();
  return 0;
}

When run the call to Py_Initialize does not return and the process is terminated.
History
Date User Action Args
2016-01-14 09:53:50David Heffernansetrecipients: + David Heffernan, paul.moore, tim.golden, zach.ware, steve.dower
2016-01-14 09:53:50David Heffernansetmessageid: <1452765230.72.0.612722422255.issue26108@psf.upfronthosting.co.za>
2016-01-14 09:53:50David Heffernanlinkissue26108 messages
2016-01-14 09:53:50David Heffernancreate