diff -r f4ccc5aab287 Doc/extending/embedding.rst --- a/Doc/extending/embedding.rst Thu Feb 21 18:52:12 2013 -0800 +++ b/Doc/extending/embedding.rst Fri Feb 22 10:57:03 2013 +0530 @@ -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')