homepage

This issue tracker has been migrated to GitHub , and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author Matt.Jones
Recipients Matt.Jones, asvetlov, chris.jerdonek, docs@python
Date 2012年10月31日.13:36:24
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1351690584.13.0.565941224713.issue16370@psf.upfronthosting.co.za>
In-reply-to
Content
Andrew, below is a revision of your comment with a few corrections made by a native english speaker.
********************
Function :c:func:`Py_SetProgramName` should be called before :c:func:`Py_Initialize` to inform the interpreter about paths to Python run-time libraries. Next initialize the Python interpreter with :c:func:`Py_Initialize`, followed by the execution of a hard-coded Python script that prints the date and time. Afterwards, the :c:func:`Py_Finalize` call shuts the interpreter down, followed by the end of the program. In a real program, you may want to get the Python script from another source, perhaps a text-editor routine, a file, or a database. Getting the Python code from a file can better be done by using the :c:func:`PyRun_SimpleFile` function, which saves you the trouble of allocating memory space and loading the file contents.
History
Date User Action Args
2012年10月31日 13:36:24Matt.Jonessetrecipients: + Matt.Jones, asvetlov, chris.jerdonek, docs@python
2012年10月31日 13:36:24Matt.Jonessetmessageid: <1351690584.13.0.565941224713.issue16370@psf.upfronthosting.co.za>
2012年10月31日 13:36:24Matt.Joneslinkissue16370 messages
2012年10月31日 13:36:24Matt.Jonescreate

AltStyle によって変換されたページ (->オリジナル) /