Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion Doc/c-api/complex.rst
Original file line number Diff line number Diff line change
Expand Up @@ -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 <number>`_ API or use native complex types, like
the :ref:`Number Protocol <number>` API or use native complex types, like
:c:expr:`double complex`.
Expand Down
2 changes: 1 addition & 1 deletion Doc/library/collections.rst
Original file line number Diff line number Diff line change
Expand Up @@ -441,7 +441,7 @@ or subtracting from an empty counter.

* Wikipedia entry for `Multisets <https://en.wikipedia.org/wiki/Multiset>`_.

* `C++ multisets <http://www.java2s.com/Tutorial/Cpp/0380__set-multiset/Catalog0380__set-multiset.htm>`_
* `C++ multisets <https://web.archive.org/web/20210108001926/http://www.java2s.com/Tutorial/Cpp/0380__set-multiset/Catalog0380__set-multiset.htm>`_
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Site has been down for over 100 days per https://www.isitdownrightnow.com/java2s.com.html

tutorial with examples.

* For mathematical operations on multisets and their use cases, see
Expand Down
2 changes: 1 addition & 1 deletion Doc/library/mailbox.rst
Original file line number Diff line number Diff line change
Expand Up @@ -757,7 +757,7 @@ Supported mailbox formats are Maildir, mbox, MH, Babyl, and MMDF.
`nmh - Message Handling System <https://www.nongnu.org/nmh/>`_
Home page of :program:`nmh`, an updated version of the original :program:`mh`.

`MH & nmh: Email for Users & Programmers <https://rand-mh.sourceforge.io/book/>`_
`MH & nmh: Email for Users & Programmers <https://web.mit.edu/daveg/SIPB/Info/Links/Documentation/mh-book/index.htm>`_
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fun fact: This is actually "the first book in history to have been published within the Internet" per wikipedia

A GPL-licensed book on :program:`mh` and :program:`nmh`, with some information
on the mailbox format.

Expand Down
2 changes: 1 addition & 1 deletion Doc/library/profile.rst
Original file line number Diff line number Diff line change
Expand Up @@ -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/`

--------------

Expand Down
2 changes: 1 addition & 1 deletion Doc/library/secrets.rst
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@ Other functions
:term:`bytes-like objects <bytes-like object>`
*a* and *b* are equal, otherwise ``False``,
using a "constant-time compare" to reduce the risk of
`timing attacks <https://codahale.com/a-lesson-in-timing-attacks/>`_.
`timing attacks <https://en.wikipedia.org/wiki/Timing_attack>`_.
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The blog is available from the wayback machine, but it has not been updated since 2009.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If the article is still relevant (and maybe more specific to Python than the wikipedia article), then archive link would be good!

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not particularly specific to Python, more so Java. It can be found here: https://web.archive.org/web/20250208233127/https://codahale.com/a-lesson-in-timing-attacks/

Suggested change
`timing attacks <https://en.wikipedia.org/wiki/Timing_attack>`_.
`timing attacks <https://web.archive.org/web/20250208233127/https://codahale.com/a-lesson-in-timing-attacks/>`_.

You can apply if you feel it is better.

See :func:`hmac.compare_digest` for additional details.


Expand Down
2 changes: 1 addition & 1 deletion Doc/library/string.rst
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
.. module:: string
:synopsis: Common string operations.

**Source code:** :source:`Lib/string.py`
**Source code:** :source:`Lib/string/`

--------------

Expand Down
2 changes: 1 addition & 1 deletion Doc/library/tkinter.rst
Original file line number Diff line number Diff line change
Expand Up @@ -996,7 +996,7 @@ wherever the image was used.

.. seealso::

The `Pillow <https://python-pillow.org/>`_ package adds support for
The `Pillow <https://python-pillow.github.io/>`_ package adds support for
formats such as BMP, JPEG, TIFF, and WebP, among others.

.. _tkinter-file-handlers:
Expand Down
2 changes: 1 addition & 1 deletion Doc/using/configure.rst
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
2 changes: 1 addition & 1 deletion Doc/using/ios.rst
Original file line number Diff line number Diff line change
Expand Up @@ -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 <Apple/iOS/testbed>` that
The CPython source tree contains :source:`a testbed project <Apple/testbed>` 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.

Expand Down
6 changes: 2 additions & 4 deletions Doc/whatsnew/2.3.rst
Original file line number Diff line number Diff line change
Expand Up @@ -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.

.. ======================================================================

Expand Down
6 changes: 1 addition & 5 deletions Doc/whatsnew/2.6.rst
Original file line number Diff line number Diff line change
Expand Up @@ -173,8 +173,7 @@ Hosting of the Python bug tracker is kindly provided by
`Upfront Systems <https://upfrontsoftware.co.za>`__
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
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I could not find these scripts anywhere :-(

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@loewis would you know if these scripts are saved somewhere, or should the lines be deleted?

other projects wishing to move from SourceForge to Roundup.

.. seealso::
Expand All @@ -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
-----------------------------------------------------------

Expand Down
2 changes: 1 addition & 1 deletion Doc/whatsnew/3.5.rst
Original file line number Diff line number Diff line change
Expand Up @@ -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 <https://visualstudio.microsoft.com/en/vs/older-downloads/#visual-studio-2015-and-other-products>`_.
is available as part of `Visual Studio 2015 <https://visualstudio.microsoft.com/vs/older-downloads/#visual-studio-2015-update>`_.

Extension modules now include a platform information tag in their filename on
some platforms (the tag is optional, and CPython will import extensions without
Expand Down
8 changes: 4 additions & 4 deletions Lib/collections/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -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):
Expand Down
Loading