[Python-checkins] cpython (2.7): Grammar touchup.

georg.brandl python-checkins at python.org
Fri Nov 2 07:33:56 CET 2012


http://hg.python.org/cpython/rev/466cbfb3c0c6
changeset:   80179:466cbfb3c0c6
branch:      2.7
parent:      80172:639dd6e62de4
user:        Georg Brandl <georg at python.org>
date:        Fri Nov 02 07:34:37 2012 +0100
summary:
  Grammar touchup.

files:
  Doc/extending/embedding.rst |  22 ++++++++++------------
  1 files changed, 10 insertions(+), 12 deletions(-)


diff --git a/Doc/extending/embedding.rst b/Doc/extending/embedding.rst
--- a/Doc/extending/embedding.rst
+++ b/Doc/extending/embedding.rst
@@ -69,18 +69,16 @@
      return 0;
    }
 
-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.
+The :c:func:`Py_SetProgramName` function should be called before
+:c:func:`Py_Initialize` to inform the interpreter about paths to Python run-time
+libraries.  Next, the Python interpreter is initialized 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.
 
 
 .. _lower-level-embedding:

-- 
Repository URL: http://hg.python.org/cpython


More information about the Python-checkins mailing list