diff options
author | Serhiy Storchaka <storchaka@gmail.com> | 2023-09-23 06:31:20 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-09-23 06:31:20 (GMT) |
commit | 92af0cc580051fd1129c7a86af2cbadeb2aa36dc (patch) | |
tree | 19504cdaa115df0213978c7e25f96888b29b2861 /Doc/using | |
parent | 5e7ea95d9d5c3b80a67ffbeebd76ce4fc327dd8e (diff) | |
download | cpython-92af0cc580051fd1129c7a86af2cbadeb2aa36dc.zip cpython-92af0cc580051fd1129c7a86af2cbadeb2aa36dc.tar.gz cpython-92af0cc580051fd1129c7a86af2cbadeb2aa36dc.tar.bz2 |
gh-109634: Use :samp: role (GH-109635)
Diffstat (limited to 'Doc/using')
-rw-r--r-- | Doc/using/configure.rst | 10 | ||||
-rw-r--r-- | Doc/using/windows.rst | 4 |
2 files changed, 7 insertions, 7 deletions
diff --git a/Doc/using/configure.rst b/Doc/using/configure.rst index 16ed33d..763f977 100644 --- a/Doc/using/configure.rst +++ b/Doc/using/configure.rst @@ -1012,7 +1012,7 @@ differently depending if the ``Py_BUILD_CORE_MODULE`` macro is defined: * Use ``Py_IMPORTED_SYMBOL`` otherwise. If the ``Py_BUILD_CORE_BUILTIN`` macro is used by mistake on a C extension -built as a shared library, its ``PyInit_xxx()`` function is not exported, +built as a shared library, its :samp:`PyInit_{xxx}()` function is not exported, causing an :exc:`ImportError` on import. @@ -1033,8 +1033,8 @@ Preprocessor flags .. envvar:: CPPFLAGS - (Objective) C/C++ preprocessor flags, e.g. ``-I<include dir>`` if you have - headers in a nonstandard directory ``<include dir>``. + (Objective) C/C++ preprocessor flags, e.g. :samp:`-I{include_dir}` if you have + headers in a nonstandard directory *include_dir*. Both :envvar:`CPPFLAGS` and :envvar:`LDFLAGS` need to contain the shell's value to be able to build extension modules using the @@ -1223,8 +1223,8 @@ Linker flags .. envvar:: LDFLAGS - Linker flags, e.g. ``-L<lib dir>`` if you have libraries in a nonstandard - directory ``<lib dir>``. + Linker flags, e.g. :samp:`-L{lib_dir}` if you have libraries in a nonstandard + directory *lib_dir*. Both :envvar:`CPPFLAGS` and :envvar:`LDFLAGS` need to contain the shell's value to be able to build extension modules using the diff --git a/Doc/using/windows.rst b/Doc/using/windows.rst index ca79c9d..2476e60 100644 --- a/Doc/using/windows.rst +++ b/Doc/using/windows.rst @@ -889,7 +889,7 @@ minor version. I.e. ``/usr/bin/python3.7-32`` will request usage of the The "-64" suffix is deprecated, and now implies "any architecture that is not provably i386/32-bit". To request a specific environment, use the new - ``-V:<TAG>`` argument with the complete tag. + :samp:`-V:{TAG}` argument with the complete tag. The ``/usr/bin/env`` form of shebang line has one further special property. Before looking for installed Python interpreters, this form will search the @@ -1192,7 +1192,7 @@ non-standard paths in the registry and user site-packages. * Adds ``._pth`` file support and removes ``applocal`` option from ``pyvenv.cfg``. - * Adds ``pythonXX.zip`` as a potential landmark when directly adjacent + * Adds :file:`python{XX}.zip` as a potential landmark when directly adjacent to the executable. .. deprecated:: |