diff options
author | Serhiy Storchaka <storchaka@gmail.com> | 2016-02-11 11:10:36 (GMT) |
---|---|---|
committer | Serhiy Storchaka <storchaka@gmail.com> | 2016-02-11 11:10:36 (GMT) |
commit | 885bdc4946890f4bb80557fab80c3874b2cc4d39 (patch) | |
tree | be6280757afecfd1b41c886f651d6cafae384df1 /Doc/c-api | |
parent | a9725f86a984f74e74f09c4808fc8f4b403728b2 (diff) | |
download | cpython-885bdc4946890f4bb80557fab80c3874b2cc4d39.zip cpython-885bdc4946890f4bb80557fab80c3874b2cc4d39.tar.gz cpython-885bdc4946890f4bb80557fab80c3874b2cc4d39.tar.bz2 |
Issue #25985: sys.version_info is now used instead of sys.version
to format short Python version.
Diffstat (limited to 'Doc/c-api')
-rw-r--r-- | Doc/c-api/intro.rst | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/Doc/c-api/intro.rst b/Doc/c-api/intro.rst index 95cbef5..74681d2 100644 --- a/Doc/c-api/intro.rst +++ b/Doc/c-api/intro.rst @@ -64,9 +64,10 @@ The header files are typically installed with Python. On Unix, these are located in the directories :file:`{prefix}/include/pythonversion/` and :file:`{exec_prefix}/include/pythonversion/`, where :envvar:`prefix` and :envvar:`exec_prefix` are defined by the corresponding parameters to Python's -:program:`configure` script and *version* is ``sys.version[:3]``. On Windows, -the headers are installed in :file:`{prefix}/include`, where :envvar:`prefix` is -the installation directory specified to the installer. +:program:`configure` script and *version* is +``'%d.%d' % sys.version_info[:2]``. On Windows, the headers are installed +in :file:`{prefix}/include`, where :envvar:`prefix` is the installation +directory specified to the installer. To include the headers, place both directories (if different) on your compiler's search path for includes. Do *not* place the parent directories on the search |