https://github.com/python/cpython/commit/c4f9823be277b2e3de2315526612276626217743
commit: c4f9823be277b2e3de2315526612276626217743
branch: main
author: trag1c <[email protected]>
committer: hugovk <[email protected]>
date: 2024-05-08T01:06:38-06:00
summary:

gh-118671: Updated dead ActiveState links (#118730)

Co-authored-by: blurb-it[bot] <43283697+blurb-it[bot]@users.noreply.github.com>
Co-authored-by: Kirill Podoprigora <[email protected]>

files:
M Doc/howto/urllib2.rst
M Doc/library/collections.rst
M Doc/library/difflib.rst
M Doc/library/math.rst
M Doc/library/random.rst
M Doc/library/shelve.rst
M Doc/library/stdtypes.rst
M Doc/library/sys.rst
M Doc/whatsnew/3.2.rst
M Lib/test/test_math.py
M Modules/mathmodule.c
M Tools/peg_generator/pegen/sccutils.py

diff --git a/Doc/howto/urllib2.rst b/Doc/howto/urllib2.rst
index 7f54a410881514..33a2a7ea89ea07 100644
--- a/Doc/howto/urllib2.rst
+++ b/Doc/howto/urllib2.rst
@@ -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/>`_.
 
diff --git a/Doc/library/collections.rst b/Doc/library/collections.rst
index f868799e7f5c10..19b89ad79c7414 100644
--- a/Doc/library/collections.rst
+++ b/Doc/library/collections.rst
@@ -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.
 
diff --git a/Doc/library/difflib.rst b/Doc/library/difflib.rst
index d45e46448207a4..6a34f2e4d7f5e1 100644
--- a/Doc/library/difflib.rst
+++ b/Doc/library/difflib.rst
@@ -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`.
 
 
diff --git a/Doc/library/math.rst b/Doc/library/math.rst
index 1475d26486de5f..ab9236cc7cfb81 100644
--- a/Doc/library/math.rst
+++ b/Doc/library/math.rst
@@ -134,7 +134,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)
diff --git a/Doc/library/random.rst b/Doc/library/random.rst
index 4584bbc40aa07b..22a799c706b7e2 100644
--- a/Doc/library/random.rst
+++ b/Doc/library/random.rst
@@ -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.
 
diff --git a/Doc/library/shelve.rst b/Doc/library/shelve.rst
index 95c54991887022..1fa614f6584170 100644
--- a/Doc/library/shelve.rst
+++ b/Doc/library/shelve.rst
@@ -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.
 
diff --git a/Doc/library/stdtypes.rst b/Doc/library/stdtypes.rst
index 6c13bd015d5691..8f5f9ee519a573 100644
--- a/Doc/library/stdtypes.rst
+++ b/Doc/library/stdtypes.rst
@@ -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.
 
diff --git a/Doc/library/sys.rst b/Doc/library/sys.rst
index 91afa9d58e87e6..19a396d2300011 100644
--- a/Doc/library/sys.rst
+++ b/Doc/library/sys.rst
@@ -877,7 +877,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.
 
diff --git a/Doc/whatsnew/3.2.rst b/Doc/whatsnew/3.2.rst
index 52474517f5facc..a6b38207b70c93 100644
--- a/Doc/whatsnew/3.2.rst
+++ b/Doc/whatsnew/3.2.rst
@@ -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
diff --git a/Lib/test/test_math.py b/Lib/test/test_math.py
index 0e4dbc0b64a439..b68c442013c09f 100644
--- a/Lib/test/test_math.py
+++ b/Lib/test/test_math.py
@@ -657,7 +657,7 @@ def testFsum(self):
         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
diff --git a/Modules/mathmodule.c b/Modules/mathmodule.c
index a3cbfc383761a0..a79694730a8e4e 100644
--- a/Modules/mathmodule.c
+++ b/Modules/mathmodule.c
@@ -1253,7 +1253,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.
diff --git a/Tools/peg_generator/pegen/sccutils.py 
b/Tools/peg_generator/pegen/sccutils.py
index 1f0586bb2f7d6d..da4c9331625dd9 100644
--- a/Tools/peg_generator/pegen/sccutils.py
+++ b/Tools/peg_generator/pegen/sccutils.py
@@ -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():

_______________________________________________
Python-checkins mailing list -- [email protected]
To unsubscribe send an email to [email protected]
https://mail.python.org/mailman3/lists/python-checkins.python.org/
Member address: [email protected]

Reply via email to