Grammar touchup.
authorGeorg Brandl <georg@python.org>
Fri, 2 Nov 2012 06:34:37 +0000 (07:34 +0100)
committerGeorg Brandl <georg@python.org>
Fri, 2 Nov 2012 06:34:37 +0000 (07:34 +0100)
Doc/extending/embedding.rst

index cc4a70e25440e993c98266014591cf77856ac17d..ed2b5bf3e4554657613b9957dcdd43e663d4e111 100644 (file)
@@ -69,18 +69,16 @@ perform some operation on a file. ::
      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: