[Python-checkins] cpython (2.7): #17256: fix syntax highlight in embedding example. Patch by Kushal Das.

ezio.melotti python-checkins at python.org
Fri Feb 22 06:53:41 CET 2013


http://hg.python.org/cpython/rev/ad55dc7de7fc
changeset:   82313:ad55dc7de7fc
branch:      2.7
user:        Ezio Melotti <ezio.melotti at gmail.com>
date:        Fri Feb 22 07:38:11 2013 +0200
summary:
  #17256: fix syntax highlight in embedding example.  Patch by Kushal Das.

files:
  Doc/extending/embedding.rst |  8 ++++++--
  1 files changed, 6 insertions(+), 2 deletions(-)


diff --git a/Doc/extending/embedding.rst b/Doc/extending/embedding.rst
--- a/Doc/extending/embedding.rst
+++ b/Doc/extending/embedding.rst
@@ -229,7 +229,9 @@
 
 These two lines initialize the ``numargs`` variable, and make the
 :func:`emb.numargs` function accessible to the embedded Python interpreter.
-With these extensions, the Python script can do things like ::
+With these extensions, the Python script can do things like
+
+.. code-block:: python
 
    import emb
    print "Number of arguments", emb.numargs()
@@ -273,7 +275,9 @@
 Determining the right options to use for any given platform can be quite
 difficult, but fortunately the Python configuration already has those values.
 To retrieve them from an installed Python interpreter, start an interactive
-interpreter and have a short session like this::
+interpreter and have a short session like this
+
+.. code-block:: python
 
    >>> import distutils.sysconfig
    >>> distutils.sysconfig.get_config_var('LINKFORSHARED')

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


More information about the Python-checkins mailing list