From 9fdc8d8efc2b36e4355a4ae2e5065acbb472a539 Mon Sep 17 00:00:00 2001 From: Stan Ulbrych Date: Sun, 12 Oct 2025 20:40:09 +0100 Subject: [PATCH 1/2] Commit --- Doc/c-api/complex.rst | 2 +- Doc/library/collections.rst | 2 +- Doc/library/profile.rst | 2 +- Doc/library/secrets.rst | 2 +- Doc/library/string.rst | 2 +- Doc/library/tkinter.rst | 2 +- Doc/using/configure.rst | 2 +- Doc/using/ios.rst | 2 +- Doc/whatsnew/2.3.rst | 6 ++---- Doc/whatsnew/2.6.rst | 6 +----- Doc/whatsnew/3.5.rst | 2 +- Lib/collections/__init__.py | 8 ++++---- 12 files changed, 16 insertions(+), 22 deletions(-) diff --git a/Doc/c-api/complex.rst b/Doc/c-api/complex.rst index aa91b85d07fc7e..0f9062e8a29cfd 100644 --- a/Doc/c-api/complex.rst +++ b/Doc/c-api/complex.rst @@ -130,7 +130,7 @@ rather than dereferencing them through pointers. Please note, that these functions are :term:`soft deprecated` since Python 3.15. Avoid using this API in a new code to do complex arithmetic: either use -the `Number Protocol `_ API or use native complex types, like +the :ref:`Number Protocol ` API or use native complex types, like :c:expr:`double complex`. diff --git a/Doc/library/collections.rst b/Doc/library/collections.rst index 52178d6c526a40..68fa834447ad03 100644 --- a/Doc/library/collections.rst +++ b/Doc/library/collections.rst @@ -441,7 +441,7 @@ or subtracting from an empty counter. * Wikipedia entry for `Multisets `_. - * `C++ multisets `_ + * `C++ multisets `_ tutorial with examples. * For mathematical operations on multisets and their use cases, see diff --git a/Doc/library/profile.rst b/Doc/library/profile.rst index faf8079db3ddd8..b8e799a6822c05 100644 --- a/Doc/library/profile.rst +++ b/Doc/library/profile.rst @@ -4,7 +4,7 @@ The Python Profilers ******************** -**Source code:** :source:`Lib/profile.py`, :source:`Lib/pstats.py`, and :source:`Lib/profile/sample.py` +**Source code:** :source:`Lib/profile.py`, :source:`Lib/pstats.py`, and :source:`Lib/profiling/sampling/` -------------- diff --git a/Doc/library/secrets.rst b/Doc/library/secrets.rst index 75dafc54d40ca5..7b5ace8948f9bd 100644 --- a/Doc/library/secrets.rst +++ b/Doc/library/secrets.rst @@ -132,7 +132,7 @@ Other functions :term:`bytes-like objects ` *a* and *b* are equal, otherwise ``False``, using a "constant-time compare" to reduce the risk of - `timing attacks `_. + `timing attacks `_. See :func:`hmac.compare_digest` for additional details. diff --git a/Doc/library/string.rst b/Doc/library/string.rst index 6336a0ec47b91e..525b2e96a5eb45 100644 --- a/Doc/library/string.rst +++ b/Doc/library/string.rst @@ -4,7 +4,7 @@ .. module:: string :synopsis: Common string operations. -**Source code:** :source:`Lib/string.py` +**Source code:** :source:`Lib/string/` -------------- diff --git a/Doc/library/tkinter.rst b/Doc/library/tkinter.rst index f284988daf2d4e..63742e43c91e5e 100644 --- a/Doc/library/tkinter.rst +++ b/Doc/library/tkinter.rst @@ -996,7 +996,7 @@ wherever the image was used. .. seealso:: - The `Pillow `_ package adds support for + The `Pillow `_ package adds support for formats such as BMP, JPEG, TIFF, and WebP, among others. .. _tkinter-file-handlers: diff --git a/Doc/using/configure.rst b/Doc/using/configure.rst index 01537951aebb62..c8c0952c4988e6 100644 --- a/Doc/using/configure.rst +++ b/Doc/using/configure.rst @@ -1089,7 +1089,7 @@ See :source:`Mac/README.rst`. iOS Options ----------- -See :source:`iOS/README.rst`. +See :source:`Apple/iOS/README.md`. .. option:: --enable-framework=INSTALLDIR diff --git a/Doc/using/ios.rst b/Doc/using/ios.rst index 5e4033fb6cec7a..59c75ac5e89e2d 100644 --- a/Doc/using/ios.rst +++ b/Doc/using/ios.rst @@ -266,7 +266,7 @@ modules in your app, some additional steps will be required: Testing a Python package ------------------------ -The CPython source tree contains :source:`a testbed project ` that +The CPython source tree contains :source:`a testbed project ` that is used to run the CPython test suite on the iOS simulator. This testbed can also be used as a testbed project for running your Python library's test suite on iOS. diff --git a/Doc/whatsnew/2.3.rst b/Doc/whatsnew/2.3.rst index b7e4e73f4ce4aa..1e3efff24a6882 100644 --- a/Doc/whatsnew/2.3.rst +++ b/Doc/whatsnew/2.3.rst @@ -1864,10 +1864,8 @@ and bundle it with the source of your extension. .. seealso:: - https://hg.python.org/cpython/file/default/Objects/obmalloc.c - For the full details of the pymalloc implementation, see the comments at - the top of the file :file:`Objects/obmalloc.c` in the Python source code. - The above link points to the file within the python.org SVN browser. + For the full details of the pymalloc implementation, see the comments at + the top of the :source:`Objects/obmalloc.c` file in the Python source code. .. ====================================================================== diff --git a/Doc/whatsnew/2.6.rst b/Doc/whatsnew/2.6.rst index f5e3a47037c65f..d8afd8ec1833b3 100644 --- a/Doc/whatsnew/2.6.rst +++ b/Doc/whatsnew/2.6.rst @@ -173,8 +173,7 @@ Hosting of the Python bug tracker is kindly provided by `Upfront Systems `__ of Stellenbosch, South Africa. Martin von Löwis put a lot of effort into importing existing bugs and patches from -SourceForge; his scripts for this import operation are at -``https://svn.python.org/view/tracker/importer/`` and may be useful to +SourceForge; his scripts for this import operation may be useful to other projects wishing to move from SourceForge to Roundup. .. seealso:: @@ -188,9 +187,6 @@ other projects wishing to move from SourceForge to Roundup. https://roundup.sourceforge.io/ Roundup downloads and documentation. - https://svn.python.org/view/tracker/importer/ - Martin von Löwis's conversion scripts. - New Documentation Format: reStructuredText Using Sphinx ----------------------------------------------------------- diff --git a/Doc/whatsnew/3.5.rst b/Doc/whatsnew/3.5.rst index 6009dd8a71eea5..2f2e5501844a2e 100644 --- a/Doc/whatsnew/3.5.rst +++ b/Doc/whatsnew/3.5.rst @@ -2213,7 +2213,7 @@ for details.) The :c:member:`PyTypeObject.tp_finalize` slot is now part of the stable ABI. Windows builds now require Microsoft Visual C++ 14.0, which -is available as part of `Visual Studio 2015 `_. +is available as part of `Visual Studio 2015 `_. Extension modules now include a platform information tag in their filename on some platforms (the tag is optional, and CPython will import extensions without diff --git a/Lib/collections/__init__.py b/Lib/collections/__init__.py index 25ac4d1d524bc2..30a35157b8b546 100644 --- a/Lib/collections/__init__.py +++ b/Lib/collections/__init__.py @@ -593,10 +593,10 @@ class Counter(dict): ''' # References: - # http://en.wikipedia.org/wiki/Multiset - # http://www.gnu.org/software/smalltalk/manual-base/html_node/Bag.html - # http://www.java2s.com/Tutorial/Cpp/0380__set-multiset/Catalog0380__set-multiset.htm - # http://code.activestate.com/recipes/259174/ + # https://en.wikipedia.org/wiki/Multiset + # https://www.gnu.org/software/smalltalk/manual-base/html_node/Bag.html + # https://web.archive.org/web/20210108001926/http://www.java2s.com/Tutorial/Cpp/0380__set-multiset/Catalog0380__set-multiset.htm + # https://code.activestate.com/recipes/259174/ # Knuth, TAOCP Vol. II section 4.6.3 def __init__(self, iterable=None, /, **kwds): From 67aa1d890c2e731860f01a4ec1c8364406510da4 Mon Sep 17 00:00:00 2001 From: Stan Ulbrych Date: Sun, 12 Oct 2025 20:53:11 +0100 Subject: [PATCH 2/2] Missed one! --- Doc/library/mailbox.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Doc/library/mailbox.rst b/Doc/library/mailbox.rst index e8a96f29ea185e..9df59589a35c24 100644 --- a/Doc/library/mailbox.rst +++ b/Doc/library/mailbox.rst @@ -757,7 +757,7 @@ Supported mailbox formats are Maildir, mbox, MH, Babyl, and MMDF. `nmh - Message Handling System `_ Home page of :program:`nmh`, an updated version of the original :program:`mh`. - `MH & nmh: Email for Users & Programmers `_ + `MH & nmh: Email for Users & Programmers `_ A GPL-licensed book on :program:`mh` and :program:`nmh`, with some information on the mailbox format.