summaryrefslogtreecommitdiffstats
path: root/Doc/extending
diff options
context:
space:
mode:
authorNed Deily <nad@acm.org>2013-06-24 21:23:35 (GMT)
committerNed Deily <nad@acm.org>2013-06-24 21:23:35 (GMT)
commit2c72b51c446b85e967cdb650a49c5df1b1b08b23 (patch)
tree28769c3b726dea2442079abe446d91e7eafff0f3 /Doc/extending
parent71765770a4a8cb0bc66b8b015e99606e23526957 (diff)
parent51cee7d24a8927a91f8c005590583346161798b8 (diff)
downloadcpython-2c72b51c446b85e967cdb650a49c5df1b1b08b23.zip
cpython-2c72b51c446b85e967cdb650a49c5df1b1b08b23.tar.gz
cpython-2c72b51c446b85e967cdb650a49c5df1b1b08b23.tar.bz2
Issue #18164: merge from 3.3
Diffstat (limited to 'Doc/extending')
-rw-r--r--Doc/extending/embedding.rst4
1 files changed, 3 insertions, 1 deletions
diff --git a/Doc/extending/embedding.rst b/Doc/extending/embedding.rst
index 3754380..6cb686a 100644
--- a/Doc/extending/embedding.rst
+++ b/Doc/extending/embedding.rst
@@ -307,11 +307,13 @@ examine Python's :file:`Makefile` (use :func:`sysconfig.get_makefile_filename`
to find its location) and compilation
options. In this case, the :mod:`sysconfig` module is a useful tool to
programmatically extract the configuration values that you will want to
-combine together:
+combine together. For example:
.. code-block:: python
>>> import sysconfig
+ >>> sysconfig.get_config_var('LIBS')
+ '-lpthread -ldl -lutil'
>>> sysconfig.get_config_var('LINKFORSHARED')
'-Xlinker -export-dynamic'