From f7111d83efc5148aa2524a331471e97998d5de54 Mon Sep 17 00:00:00 2001 From: Adorilson Bezerra Date: Mon, 6 Oct 2025 01:15:47 +0100 Subject: [PATCH 1/2] Doc: Add sphinx.ext.imgconvert to support SVG on Latex --- Doc/conf.py | 1 + 1 file changed, 1 insertion(+) diff --git a/Doc/conf.py b/Doc/conf.py index c1b07df08b1782..d69c560f367a09 100644 --- a/Doc/conf.py +++ b/Doc/conf.py @@ -38,6 +38,7 @@ 'sphinx.ext.coverage', 'sphinx.ext.doctest', 'sphinx.ext.extlinks', + 'sphinx.ext.imgconverter', ] # Skip if downstream redistributors haven't installed them From ecd99566b7a8c0cae1a660f65437f08aceeb5274 Mon Sep 17 00:00:00 2001 From: Adorilson Bezerra Date: Tue, 11 May 2021 20:47:30 -0300 Subject: [PATCH 2/2] [Doc] Added examples for str.join() --- Doc/library/stdtypes.rst | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/Doc/library/stdtypes.rst b/Doc/library/stdtypes.rst index 21fe35edc1bef8..bad64f4eeef5e5 100644 --- a/Doc/library/stdtypes.rst +++ b/Doc/library/stdtypes.rst @@ -2173,9 +2173,6 @@ expression support in the :mod:`re` module). False - -.. _meth-str-join: - .. method:: str.join(iterable, /) Return a string which is the concatenation of the strings in *iterable*. @@ -2183,6 +2180,14 @@ expression support in the :mod:`re` module). *iterable*, including :class:`bytes` objects. The separator between elements is the string providing this method. + For example: + + .. doctest:: + >>> ', '.join(['spam', 'spam', 'spam']) + 'spam, spam, spam' + >>> '-'.join('Python') + 'P-y-t-h-o-n' + .. method:: str.ljust(width, fillchar=' ', /)