File tree Expand file tree Collapse file tree 17 files changed +20
-20
lines changed
Filter options
Tools/peg_generator/pegen Expand file tree Collapse file tree 17 files changed +20
-20
lines changed
Original file line number Diff line number Diff line change @@ -1141,7 +1141,7 @@ How do you remove duplicates from a list?
1141
1141
1142
1142
See the Python Cookbook for a long discussion of many ways to do this:
1143
1143
1144
- https://github. com/ActiveState/code/tree/master/ recipes/Python/52560_Remove_duplicates/recipe- 52560.py
1144
+ https://code.activestate. com/recipes/52560/
1145
1145
1146
1146
If you don't mind reordering the list, sort it and then scan from the end of the
1147
1147
list, deleting duplicates as you go::
Original file line number Diff line number Diff line change @@ -601,5 +601,5 @@ This document was reviewed and revised by John Lee.
601
601
scripts with a localhost server, I have to prevent urllib from using
602
602
the proxy.
603
603
.. [# ] urllib opener for SSL proxy (CONNECT method): `ASPN Cookbook Recipe
604
- <https://github. com/ActiveState/code/tree/master/ recipes/Python/456195_urrlib2_opener_SSL_proxy_CONNECT/recipe- 456195.py > `_.
604
+ <https://code.activestate. com/recipes/456195/ > `_.
605
605
Original file line number Diff line number Diff line change @@ -60,7 +60,7 @@ The following functions are provided:
60
60
.. seealso ::
61
61
62
62
`SortedCollection recipe
63
- <https://github. com/ActiveState/code/tree/master/ recipes/Python/577197_SortedCollection/recipe- 577197.py > `_ that uses
63
+ <https://code.activestate. com/recipes/577197-sortedcollection/ > `_ that uses
64
64
bisect to build a full-featured collection class with straight-forward search
65
65
methods and support for a key-function. The keys are precomputed to save
66
66
unnecessary calls to the key function during searches.
Original file line number Diff line number Diff line change @@ -308,7 +308,7 @@ Notes on using :class:`Set` and :class:`MutableSet` as a mixin:
308
308
309
309
.. seealso ::
310
310
311
- * `OrderedSet recipe <https://github. com/ActiveState/code/tree/master/ recipes/Python/576694_OrderedSet/recipe- 576694.py >`_ for an
311
+ * `OrderedSet recipe <https://code.activestate. com/recipes/576694/ >`_ for an
312
312
example built on :class: `MutableSet `.
313
313
314
314
* For more about ABCs, see the :mod: `abc ` module and :pep: `3119 `.
Original file line number Diff line number Diff line change @@ -135,12 +135,12 @@ The class can be used to simulate nested scopes and is useful in templating.
135
135
:attr: `~collections.ChainMap.parents ` property.
136
136
137
137
* The `Nested Contexts recipe
138
- <https://github. com/ActiveState/code/tree/master/ recipes/Python/577434_Nested_contexts__chamapping/recipe- 577434.py > `_ has options to control
138
+ <https://code.activestate. com/recipes/577434/ > `_ has options to control
139
139
whether writes and other mutations apply only to the first mapping or to
140
140
any mapping in the chain.
141
141
142
142
* A `greatly simplified read-only version of Chainmap
143
- <https://github. com/ActiveState/code/tree/master/ recipes/Python/305268_Chained_map_lookups/recipe- 305268.py > `_.
143
+ <https://code.activestate. com/recipes/305268/ > `_.
144
144
145
145
146
146
:class: `ChainMap ` Examples and Recipes
Original file line number Diff line number Diff line change @@ -633,7 +633,7 @@ If you want to know how to change the first sequence into the second, use
633
633
work.
634
634
635
635
* `Simple version control recipe
636
- <https://github. com/ActiveState/code/tree/master/ recipes/Python/576729_Simple_Version_Control/recipe- 576729.py > `_ for a small application
636
+ <https://code.activestate. com/recipes/576729/ > `_ for a small application
637
637
built with :class: `SequenceMatcher `.
638
638
639
639
Original file line number Diff line number Diff line change @@ -123,7 +123,7 @@ Number-theoretic and representation functions
123
123
124
124
For further discussion and two alternative approaches, see the `ASPN cookbook
125
125
recipes for accurate floating point summation
126
- <https://github. com/ActiveState/code/tree/master/ recipes/Python/393090_Binary_floating_point_summatiaccurate_full/recipe- 393090.py > `_\.
126
+ <https://code.activestate. com/recipes/393090/ > `_\.
127
127
128
128
129
129
.. function :: gcd(*integers)
Original file line number Diff line number Diff line change @@ -57,7 +57,7 @@ from sources provided by the operating system.
57
57
58
58
59
59
`Complementary-Multiply-with-Carry recipe
60
- <https://github. com/ActiveState/code/tree/master/ recipes/Python/576707_Long_period_random_number/recipe- 576707.py > `_ for a compatible alternative
60
+ <https://code.activestate. com/recipes/576707/ > `_ for a compatible alternative
61
61
random number generator with a long period and comparatively simple update
62
62
operations.
63
63
Original file line number Diff line number Diff line change @@ -75,7 +75,7 @@ Two additional methods are supported:
75
75
76
76
.. seealso ::
77
77
78
- `Persistent dictionary recipe <https://github. com/ActiveState/code/tree/master/ recipes/Python/576642_Persistent_dict_multiple_standard_file/recipe- 576642.py >`_
78
+ `Persistent dictionary recipe <https://code.activestate. com/recipes/576642/ >`_
79
79
with widely supported storage formats and having the speed of native
80
80
dictionaries.
81
81
Original file line number Diff line number Diff line change @@ -1404,7 +1404,7 @@ objects that compare equal might have different :attr:`~range.start`,
1404
1404
1405
1405
.. seealso ::
1406
1406
1407
- * The `linspace recipe <https ://github. com/ActiveState/code/tree/master/ recipes/Python/579000_Equallyspaced_numbers_linspace/recipe- 579000.py >`_
1407
+ * The `linspace recipe <http ://code.activestate. com/recipes/579000/ >`_
1408
1408
shows how to implement a lazy version of range suitable for floating
1409
1409
point applications.
1410
1410
You can’t perform that action at this time.
0 commit comments