8000 gh-118671: Updated dead ActiveState links (#118730) · python/cpython@c4f9823 · GitHub
[go: up one dir, main page]

Skip to content

Commit c4f9823

Browse files
trag1cblurb-it[bot]Eclips4
authored
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 <kirill.bast9@mail.ru>
1 parent fcf52d7 commit c4f9823

File tree

12 files changed

+14
-14
lines changed

12 files changed

+14
-14
lines changed

Doc/howto/urllib2.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -594,5 +594,5 @@ This document was reviewed and revised by John Lee.
594594
scripts with a localhost server, I have to prevent urllib from using
595595
the proxy.
596596
.. [#] urllib opener for SSL proxy (CONNECT method): `ASPN Cookbook Recipe
597-
<https://code.activestate.com/recipes/456195/>`_.
597+
<https://code.activestate.com/recipes/456195-urrlib2-opener-for-ssl-proxy-connect-method/>`_.
598598

Doc/library/collections.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -134,7 +134,7 @@ The class can be used to simulate nested scopes and is useful in templating.
134134
:attr:`~collections.ChainMap.parents` property.
135135

136136
* The `Nested Contexts recipe
137-
<https://code.activestate.com/recipes/577434/>`_ has options to control
137+
<https://code.activestate.com/recipes/577434-nested-contexts-a-chain-of-mapping-objects/>`_ has options to control
138138
whether writes and other mutations apply only to the first mapping or to
139139
any mapping in the chain.
140140

Doc/library/difflib.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -631,7 +631,7 @@ If you want to know how to change the first sequence into the second, use
631631
work.
632632

633633
* `Simple version control recipe
634-
<https://code.activestate.com/recipes/576729/>`_ for a small application
634+
<https://code.activestate.com/recipes/576729-simple-version-control/>`_ for a small application
635635
built with :class:`SequenceMatcher`.
636636

637637

Doc/library/math.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -134,7 +134,7 @@ Number-theoretic and representation functions
134134

135135
For further discussion and two alternative approaches, see the `ASPN cookbook
136136
recipes for accurate floating point summation
137-
<https://code.activestate.com/recipes/393090/>`_\.
137+
<https://code.activestate.com/recipes/393090-binary-floating-point-summation-accurate-to-full-p/>`_\.
138138

139139

140140
.. function:: gcd(*integers)

Doc/library/random.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ from sources provided by the operating system.
5555

5656

5757
`Complementary-Multiply-with-Carry recipe
58-
<https://code.activestate.com/recipes/576707/>`_ for a compatible alternative
58+
<https://code.activestate.com/recipes/576707-long-period-random-number-generator/>`_ for a compatible alternative
5959
random number generator with a long period and comparatively simple update
6060
operations.
6161

Doc/library/shelve.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ Two additional methods are supported:
8686

8787
.. seealso::
8888

89-
`Persistent dictionary recipe <https://code.activestate.com/recipes/576642/>`_
89+
`Persistent dictionary recipe <https://code.activestate.com/recipes/576642-persistent-dict-with-multiple-standard-file-format/>`_
9090
with widely supported storage formats and having the speed of native
9191
dictionaries.
9292

Doc/library/stdtypes.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1496,7 +1496,7 @@ objects that compare equal might have different :attr:`~range.start`,
14961496

14971497
.. seealso::
14981498

1499-
* The `linspace recipe <https://code.activestate.com/recipes/579000/>`_
1499+
* The `linspace recipe <https://code.activestate.com/recipes/579000-equally-spaced-numbers-linspace/>`_
15001500
shows how to implement a lazy version of range suitable for floating
15011501
point applications.
15021502

Doc/library/sys.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -877,7 +877,7 @@ always available.
877877
additional garbage collector overhead if the object is managed by the garbage
878878
collector.
879879

880-
See `recursive sizeof recipe <https://code.activestate.com/recipes/577504/>`_
880+
See `recursive sizeof recipe <https://code.activestate.com/recipes/577504-compute-memory-footprint-of-an-object-and-its-cont/>`_
881881
for an example of using :func:`getsizeof` recursively to find the size of
882882
containers and all their contents.
883883

Doc/whatsnew/3.2.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -785,8 +785,8 @@ functools
785785

786786
(Contributed by Raymond Hettinger and incorporating design ideas from Jim
787787
Baker, Miki Tebeka, and Nick Coghlan; see `recipe 498245
788-
<https://code.activestate.com/recipes/498245/>`_\, `recipe 577479
789-
<https://code.activestate.com/recipes/577479/>`_\, :issue:`10586`, and
788+
<https://code.activestate.com/recipes/498245-lru-and-lfu-cache-decorators/>`_\, `recipe 577479
789+
<https://code.activestate.com/recipes/577479-simple-caching-decorator/>`_\, :issue:`10586`, and
790790
:issue:`10593`.)
791791

792792
* The :func:`functools.wraps` decorator now adds a :attr:`__wrapped__` attribute

Lib/test/test_math.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -657,7 +657,7 @@ def testFsum(self):
657657
def msum(iterable):
658658
"""Full precision summation. Compute sum(iterable) without any
659659
intermediate accumulation of error. Based on the 'lsum' function
660-
at http://code.activestate.com/recipes/393090/
660+
at https://code.activestate.com/recipes/393090-binary-floating-point-summation-accurate-to-full-p/
661661
662662
"""
663663
tmant, texp = 0, 0

Modules/mathmodule.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1253,7 +1253,7 @@ FUNC1(tanh, tanh, 0,
12531253
"Return the hyperbolic tangent of x.")
12541254

12551255
/* Precision summation function as msum() by Raymond Hettinger in
1256-
<http://aspn.activestate.com/ASPN/Cookbook/Python/Recipe/393090>,
1256+
<https://code.activestate.com/recipes/393090-binary-floating-point-summation-accurate-to-full-p/>,
12571257
enhanced with the exact partials sum and roundoff from Mark
12581258
Dickinson's post at <http://bugs.python.org/file10357/msum4.py>.
12591259
See those links for more details, proofs and other references.

Tools/peg_generator/pegen/sccutils.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ def strongly_connected_components(
1818
exactly once; vertices not part of a SCC are returned as
1919
singleton sets.
2020
21-
From http://code.activestate.com/recipes/578507/.
21+
From https://code.activestate.com/recipes/578507-strongly-connected-components-of-a-directed-graph/.
2222
"""
2323
identified: Set[str] = set()
2424
stack: List[str] = []
@@ -81,7 +81,7 @@ def topsort(
8181
{B, C}
8282
{A}
8383
84-
From http://code.activestate.com/recipes/577413/.
84+
From https://code.activestate.com/recipes/577413-topological-sort/history/1/.
8585
"""
8686
# TODO: Use a faster algorithm?
8787
for k, v in data.items():

0 commit comments

Comments
 (0)
0