Miss Islington (bot)
aae0a1f904
[3.13] Add multinomial to the itertools recipes docs (gh-129760) (gh-129762)
2025-02-06 18:45:15 -06:00
Miss Islington (bot)
71a1e79134
[3.13] Minor readability improvements for the itertools recipes (gh-127928) (gh-127999)
2024-12-16 17:33:20 +00:00
Miss Islington (bot)
28e684b330
[3.13] Simplify and speed-up an itertools recipe (gh-127848) (gh-127998)
2024-12-16 11:26:58 -06:00
Miss Islington (bot)
231c93923d
[3.13] Fix typo in itertools docs (gh-127995) (gh-127996)
2024-12-16 11:20:14 -06:00
Miss Islington (bot)
bb46b74d9d
[3.13] Itertool recipe additions (gh-127483) (gh-127585)
2024-12-03 18:34:42 -06:00
Miss Islington (bot)
21a99add45
[3.13] Misc improvements to the itertools docs (gh-125147) (gh-125149)
2024-10-08 14:37:13 -05:00
Raymond Hettinger
988cdccbe0
[3.13] Itertool docs: Minor clarifications, wording tweaks, spacing, and active voice. (gh-124690) (gh-125148)
...
Minor clarifications, wording tweaks, spacing, and active voice.
2024-10-08 14:29:15 -05:00
Raymond Hettinger
7bc99dd49e
[3.13] Tee of tee was not producing n independent iterators (gh-123884) (gh-125081)
2024-10-08 14:11:43 -05:00
Raymond Hettinger
84efcecf03
[3.13] Small improvements to the itertools docs (GH-123885) ( #125075 )
2024-10-07 23:08:09 +00:00
Serhiy Storchaka
a45d9051ed
[3.13] gh-121905: Consistently use "floating-point" instead of "floating point" (GH-121907) (GH-122012)
...
(cherry picked from commit 1a0c7b9ba4
)
2024-07-19 09:13:08 +00:00
Miss Islington (bot)
99d0f51e61
[3.13] Add unique() recipe to itertools docs (gh-119911) (gh-119916)
2024-06-01 12:06:04 -05:00
Miss Islington (bot)
8117cb5f01
[3.13] Misc cleanups and wording improvements for the itertools docs (gh-119626) (gh-119629)
2024-05-27 13:44:11 -05:00
Raymond Hettinger
5544651350
[3.13] Misc improvement to the docs for itertools (gh-119529) ( #119531 )
...
Misc improvement to the docs for itertools (gh-119529)
2024-05-24 17:26:25 -05:00
Miss Islington (bot)
374655fa83
[3.13] Minor improvements to the docs for itertools.tee() (gh-119135) (gh-119136)
2024-05-18 01:51:04 -05:00
Miss Islington (bot)
8439d09aa1
[3.13] Misc improvements to the itertools docs (gh-119040) ( #119045 )
2024-05-14 15:38:53 +00:00
Miss Islington (bot)
87f683e09a
[3.13] Itertools docs: fix parameter names and indentation in Python equivalents (gh-118977) ( #119043 )
2024-05-14 15:11:31 +00:00
Miss Islington (bot)
c33bba6eb3
[3.13] docs: module page titles should not start with a link to themselves (GH-117099) ( #118790 )
...
docs: module page titles should not start with a link to themselves (GH-117099)
(cherry picked from commit bcb435ee8f
)
Co-authored-by: Ned Batchelder <ned@nedbatchelder.com>
2024-05-08 19:52:39 +00:00
Raymond Hettinger
c7c9b913c0
gh-118476: Fix corner cases in islice() rough equivalent. (Gh-118559)
2024-05-05 01:42:30 -05:00
Raymond Hettinger
6d9e8e989e
Minor improvements to the itertools recipes ( #118563 )
2024-05-03 17:07:47 -05:00
Hugo van Kemenade
3375282bb8
Docs: add link roles with Sphinx extlinks ( #117850 )
...
Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
2024-04-15 21:22:00 +03:00
Raymond Hettinger
41e844a4ac
gh-116842: Improve test comment and fix a doctest (gh-116846)
2024-03-14 21:40:36 -05:00
Raymond Hettinger
ab9e322ae1
Minor improvements to the itertools documentation (gh-116833)
2024-03-14 16:39:50 -05:00
Raymond Hettinger
5ff012a449
Better presentation order for recipes. (gh-116755)
2024-03-13 15:02:56 -05:00
Raymond Hettinger
e82f6dfae5
Modernize roundrobin() recipe and improve variable names (gh-116710)
2024-03-13 02:12:30 -05:00
Raymond Hettinger
93a687a373
Minor clarity improvement for the iter_index() recipe. Also add value subsequence tests. (gh-116696)
2024-03-12 21:33:42 -05:00
Raymond Hettinger
126186674e
Beef-up tests for the itertool docs. (gh-116679)
2024-03-12 17:19:58 -05:00
Raymond Hettinger
15dc2979bc
Consistently spell out *predicate* instead of *pred*. (gh-116308)
2024-03-04 15:51:29 +00:00
Raymond Hettinger
a81d9509ee
Make the iter_except() recipe more compact. (gh-116132)
...
Only one example is needed
2024-02-29 11:30:18 -06:00
Raymond Hettinger
f484a2a748
Update an out-of-date example in the itertools recipe intro (gh-116082)
2024-02-28 17:11:05 -06:00
Raymond Hettinger
67c19e57b5
Improve all_equal() recipe (gh-116081)
...
Replace conjuction of next() calls with simpler len()/take() logic. Add key function.
2024-02-28 17:04:56 -06:00
Raymond Hettinger
a0a8d9ffe0
gh-113479: Link to workaround for subtle issue with takewhile() (gh-115890)
2024-02-25 06:32:14 -06:00
Raymond Hettinger
aef375f56e
Minor algebraic simplification for the totient() recipe (gh-113822)
2024-01-08 13:16:22 -06:00
Raymond Hettinger
b5dc0f83ad
Misc minor improvements to the itertools recipes (gh-113477)
2023-12-25 16:26:04 -06:00
Raymond Hettinger
1583c40be9
gh-113202: Add a strict option to itertools.batched() (gh-113203)
2023-12-16 09:13:50 -06:00
Raymond Hettinger
40574da019
Add reshape() recipe to demonstrate a use case for batched() and chained.from_iterable() (gh-113198)
2023-12-15 18:03:44 -06:00
Raymond Hettinger
5f7d7353b4
Optimize unique_justseen() recipe for a common case. (gh-113147)
2023-12-14 17:27:39 -06:00
Raymond Hettinger
becad9a2a1
Remove itertool recipe with low pedagogical value (gh-113138)
2023-12-14 14:36:40 -06:00
Raymond Hettinger
93cf7358d9
Add recipe for totient() to demonstrate unique_justseen() and factor(). (gh-113131)
2023-12-14 13:15:29 -06:00
Raymond Hettinger
2111795d0c
Use match/case in grouper() recipe (gh-113059)
...
Use match/case in grouper() reciper
2023-12-13 12:11:52 -06:00
Jurjen N. E. Bos
c2e2df8356
Minor stylistic edit to the grouper recipe (gh112759)
2023-12-05 12:44:06 -06:00
Sebastian Rittau
6c47eaccfa
Fix docstring and var name of itertools recipe ( #112113 )
...
`prepend()` works with arbitrary iterables, not only iterators. In fact,
the example given uses a `list`, which is iterable, but not an iterator.
2023-11-22 07:35:36 +02:00
Nikita Sobolev
ee2d22f06d
gh-111343: Fix itertools
docs: start
arg is optional for count
(gh-111344)
2023-10-27 04:30:13 +00:00
Łukasz Langa
46b63ced25
Remove outdated docstring from the quantify
itertools recipe ( #109726 )
2023-09-22 15:09:32 +02:00
Raymond Hettinger
f2636d2c45
Misc itertool recipe improvements, mostly docstrings and comments (gh-109555)
2023-09-19 07:39:44 -05:00
Raymond Hettinger
f2a55fecd0
Fix iter_index() to work with lists which do not support stop=None. (gh-109306)
2023-09-12 04:04:28 +02:00
Raymond Hettinger
d3ed9921cd
Improve the sieve() recipe in the itertools docs (gh-109199)
...
Lazier sieve
2023-09-09 17:50:04 -05:00
Raymond Hettinger
f373c6b948
gh-107208: Fix iter_index() recipe to not swallow exceptions (gh-108835)
...
gh-107208: iter_index now supports "stop" and no longer swallows ValueError
2023-09-02 22:25:13 -05:00
Raymond Hettinger
6db39b1460
Minor code clean-up for the factor() recipe (GH-108114)
2023-08-18 12:13:58 -05:00
Raymond Hettinger
babb22da5a
Add more recipe tests. Make the factor recipe a bit faster and clearer. (GH-106817)
2023-07-16 21:37:07 -05:00
Raymond Hettinger
e2ec0bad67
Add more examples to the recipe docs (GH-106782)
...
Demonstrate that factor() works for large composites and large primes.
2023-07-15 14:43:09 -05:00