]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
[3.12] gh-118671: Updated dead ActiveState links (GH-118730) (#118754)
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Wed, 8 May 2024 07:22:35 +0000 (09:22 +0200)
committerGitHub <noreply@github.com>
Wed, 8 May 2024 07:22:35 +0000 (07:22 +0000)
Co-authored-by: trag1c <trag1cdev@yahoo.com>
Co-authored-by: blurb-it[bot] <43283697+blurb-it[bot]@users.noreply.github.com>
Co-authored-by: Kirill Podoprigora <kirill.bast9@mail.ru>
12 files changed:
Doc/howto/urllib2.rst
Doc/library/collections.rst
Doc/library/difflib.rst
Doc/library/math.rst
Doc/library/random.rst
Doc/library/shelve.rst
Doc/library/stdtypes.rst
Doc/library/sys.rst
Doc/whatsnew/3.2.rst
Lib/test/test_math.py
Modules/mathmodule.c
Tools/peg_generator/pegen/sccutils.py

index 7f54a410881514eea2a58663c48d692e97a89b94..33a2a7ea89ea07a0b7d30c67920a85094b89e171 100644 (file)
@@ -594,5 +594,5 @@ This document was reviewed and revised by John Lee.
        scripts with a localhost server, I have to prevent urllib from using
        the proxy.
 .. [#] urllib opener for SSL proxy (CONNECT method): `ASPN Cookbook Recipe
-       <https://code.activestate.com/recipes/456195/>`_.
+       <https://code.activestate.com/recipes/456195-urrlib2-opener-for-ssl-proxy-connect-method/>`_.
 
index 6ed2ebb40984752fac840c4ff738243fbc93797b..ed0e35dec534c12db6e50d9f284b8fb0d7572492 100644 (file)
@@ -134,7 +134,7 @@ The class can be used to simulate nested scopes and is useful in templating.
      :attr:`~collections.ChainMap.parents` property.
 
    * The `Nested Contexts recipe
-     <https://code.activestate.com/recipes/577434/>`_ has options to control
+     <https://code.activestate.com/recipes/577434-nested-contexts-a-chain-of-mapping-objects/>`_ has options to control
      whether writes and other mutations apply only to the first mapping or to
      any mapping in the chain.
 
index d45e46448207a47d0481fa4bf3f134ab94523981..6a34f2e4d7f5e1763845fce220ca6347d3aecdb2 100644 (file)
@@ -631,7 +631,7 @@ If you want to know how to change the first sequence into the second, use
      work.
 
    * `Simple version control recipe
-     <https://code.activestate.com/recipes/576729/>`_ for a small application
+     <https://code.activestate.com/recipes/576729-simple-version-control/>`_ for a small application
      built with :class:`SequenceMatcher`.
 
 
index 32fbf1c082cb4efbf28e28211ad7bb598e666165..ea9cac2decf705027a324cd4930538866a869dc7 100644 (file)
@@ -118,7 +118,7 @@ Number-theoretic and representation functions
 
    For further discussion and two alternative approaches, see the `ASPN cookbook
    recipes for accurate floating point summation
-   <https://code.activestate.com/recipes/393090/>`_\.
+   <https://code.activestate.com/recipes/393090-binary-floating-point-summation-accurate-to-full-p/>`_\.
 
 
 .. function:: gcd(*integers)
index 8fbce18c56f17c921434108f7d4433516609719f..05ab9b70e01a782886b839901c39aec69b8b34a7 100644 (file)
@@ -55,7 +55,7 @@ from sources provided by the operating system.
 
 
    `Complementary-Multiply-with-Carry recipe
-   <https://code.activestate.com/recipes/576707/>`_ for a compatible alternative
+   <https://code.activestate.com/recipes/576707-long-period-random-number-generator/>`_ for a compatible alternative
    random number generator with a long period and comparatively simple update
    operations.
 
index 95c549918870221fd0946fcd289dd517b29b435f..1fa614f6584170a0c23a2748b669a58c7b7e0b8a 100644 (file)
@@ -86,7 +86,7 @@ Two additional methods are supported:
 
 .. seealso::
 
-   `Persistent dictionary recipe <https://code.activestate.com/recipes/576642/>`_
+   `Persistent dictionary recipe <https://code.activestate.com/recipes/576642-persistent-dict-with-multiple-standard-file-format/>`_
    with widely supported storage formats and having the speed of native
    dictionaries.
 
index dbb3135c985400cd6a48328ea2b19db7dad93217..f5d5e1d54a72cd4ef3179b60ba30a1566e9c2c1d 100644 (file)
@@ -1496,7 +1496,7 @@ objects that compare equal might have different :attr:`~range.start`,
 
 .. seealso::
 
-   * The `linspace recipe <https://code.activestate.com/recipes/579000/>`_
+   * The `linspace recipe <https://code.activestate.com/recipes/579000-equally-spaced-numbers-linspace/>`_
      shows how to implement a lazy version of range suitable for floating
      point applications.
 
index 167244144839d64e587acdd79dfda8aa7d4184c2..5aa1b869d6cca9d9df982e7bb3459d6eb2332ab9 100644 (file)
@@ -864,7 +864,7 @@ always available.
    additional garbage collector overhead if the object is managed by the garbage
    collector.
 
-   See `recursive sizeof recipe <https://code.activestate.com/recipes/577504/>`_
+   See `recursive sizeof recipe <https://code.activestate.com/recipes/577504-compute-memory-footprint-of-an-object-and-its-cont/>`_
    for an example of using :func:`getsizeof` recursively to find the size of
    containers and all their contents.
 
index a94382b5d1737e9d8ca3f1bfeea2205e5df9885c..1300b759eca5c43948fb07b6212ed1498ea8cbbc 100644 (file)
@@ -785,8 +785,8 @@ functools
 
   (Contributed by Raymond Hettinger and incorporating design ideas from Jim
   Baker, Miki Tebeka, and Nick Coghlan; see `recipe 498245
-  <https://code.activestate.com/recipes/498245/>`_\, `recipe 577479
-  <https://code.activestate.com/recipes/577479/>`_\, :issue:`10586`, and
+  <https://code.activestate.com/recipes/498245-lru-and-lfu-cache-decorators/>`_\, `recipe 577479
+  <https://code.activestate.com/recipes/577479-simple-caching-decorator/>`_\, :issue:`10586`, and
   :issue:`10593`.)
 
 * The :func:`functools.wraps` decorator now adds a :attr:`__wrapped__` attribute
index aeaa99cfb8b5fb082b509bb1047782f6af6ad662..0b0155807679c3eabe56f80e040140ba2e5d863f 100644 (file)
@@ -657,7 +657,7 @@ class MathTests(unittest.TestCase):
         def msum(iterable):
             """Full precision summation.  Compute sum(iterable) without any
             intermediate accumulation of error.  Based on the 'lsum' function
-            at http://code.activestate.com/recipes/393090/
+            at https://code.activestate.com/recipes/393090-binary-floating-point-summation-accurate-to-full-p/
 
             """
             tmant, texp = 0, 0
index 23fa2b181648c9ec0ca2fea8c9dbb10c31a2b47f..bbd6bd010e1f17e86a7ef0cee65ccb44c3d96205 100644 (file)
@@ -1246,7 +1246,7 @@ FUNC1(tanh, tanh, 0,
       "Return the hyperbolic tangent of x.")
 
 /* Precision summation function as msum() by Raymond Hettinger in
-   <http://aspn.activestate.com/ASPN/Cookbook/Python/Recipe/393090>,
+   <https://code.activestate.com/recipes/393090-binary-floating-point-summation-accurate-to-full-p/>,
    enhanced with the exact partials sum and roundoff from Mark
    Dickinson's post at <http://bugs.python.org/file10357/msum4.py>.
    See those links for more details, proofs and other references.
index 1f0586bb2f7d6dbd895e87c590990660deaf941c..da4c9331625dd93dec16a0aaf3f857353e965a96 100644 (file)
@@ -18,7 +18,7 @@ def strongly_connected_components(
       exactly once; vertices not part of a SCC are returned as
       singleton sets.
 
-    From http://code.activestate.com/recipes/578507/.
+    From https://code.activestate.com/recipes/578507-strongly-connected-components-of-a-directed-graph/.
     """
     identified: Set[str] = set()
     stack: List[str] = []
@@ -81,7 +81,7 @@ def topsort(
         {B, C}
         {A}
 
-    From http://code.activestate.com/recipes/577413/.
+    From https://code.activestate.com/recipes/577413-topological-sort/history/1/.
     """
     # TODO: Use a faster algorithm?
     for k, v in data.items():