Releases: more-itertools/more-itertools
Releases · more-itertools/more-itertools
Version 10.7.0
Version 10.6.0
-
New functions:
is_prime
andnth_prime
were added (thanks to JamesParrott and rhettinger)loops
was added (thanks to rhettinger)
-
Changes to existing functions:
factor
was optimized to handle larger inputs and use less memory (thanks to rhettinger)spy
was optimized to enable nested calls (thanks to rhettinger)polynomial_from_roots
was made non-recursive and able to handle larger numbers of roots (thanks to pochmann3 and rhettinger)is_sorted
now only relies on less than comparisons (thanks to rhettinger)- The docstring for
outer_product
was improved (thanks to rhettinger) - The type annotations for
sample
were improved (thanks to rhettinger)
-
Other changes:
- Python 3.13 is officially supported. Python 3.8 is no longer officially supported. (thanks to hugovk, JamesParrott, and stankudrow)
mypy
checks were fixed (thanks to JamesParrott)
v10.5.0
Version 10.4.0
What's Changed
- Issue 854: sample improvements by @bbayles in #855
- Issue 858: Use chain and starmap in run_length.decode by @bbayles in #861
- Issue 859: Update totient recipe by @bbayles in #860
- Distinct permutations of incomparable items by @JamesParrott in #834
- Clarify seekable.relative_seek behavior by @bbayles in #863
- Issue 864: Improve _sample_unweighted by @bbayles in #865
- Use log1p for _sample_unweighted by @bbayles in #868
- Issue 862: change relative_seek() behaviour by @dkrikun in #866
- Issue 876: is_sorted clarifications by @bbayles in #877
- Issue 870: counts parameter for sample by @bbayles in #875
- Issue 869: Add a steps argument to circular_shifts by @bbayles in #874
- Issue 871: Add a fast path for sliding_window by @bbayles in #873
- type annotation of
windowed_complete
corrected by @m472 in #881 - [Docs] Fix strictly_n missing the n parameter by @fakuivan in #886
- Standardize type hints for isinstance's second argument by @jbosboom in #887
- Issue 883: change type hint by @akisatoon1 in #884
- Add type overloads for
zip_broadcast
by @Pandede in #888 - Issue 889: Optimize triplewise by @bbayles in #891
- Add option
strict
tosort_together
by @Pandede in #892 - Updates for version 10.4.0 by @bbayles in #893
New Contributors
- @JamesParrott made their first contribution in #834
- @dkrikun made their first contribution in #866
- @m472 made their first contribution in #881
- @fakuivan made their first contribution in #886
- @jbosboom made their first contribution in #887
- @akisatoon1 made their first contribution in #884
- @Pandede made their first contribution in #888
Full Changelog: v10.3.0...v10.4.0
Version 10.3.0
What's Changed
- 100% Code Coverage by @haukex in #792
- Remove recursion from
collapse
by @james-wasson in #796 - Closes #780: add pre/postpend examples in value_chain doc by @bjrtx in #802
- Increase performance of
padded
by @james-wasson in #805 - Update table of contents by @bjrtx in #808
- Add exactly size of n doc to padded by @james-wasson in #807
- Speed up
ichunked
by @james-wasson in #793 - Optimize
chunked_even
itertool by @james-wasson in #816 - Optimize windowed itertool by @james-wasson in #810
- Issue 822: update iter_index docs by @bbayles in #827
- Issue 823: improve totient by @bbayles in #826
- Issue 821: key argument for all_equal by @bbayles in #825
- Update roundrobin implementation by @bbayles in #829
- Issue 820: add powerset_of_sets by @bbayles in #828
- Fix a typo found by codespell by @DimitriPapadopoulos in #830
- Add typing for countable.items_seen attribute. by @aidanholm in #836
- Add join_mappings by @bbayles in #841
- Add doublestarmap (closes #679) by @monk-time in #845
- Add dft and idft by @bbayles in #847
- Changes for version 10.3.0 by @bbayles in #851
- Add unique() by @bbayles in #850
New Contributors
- @james-wasson made their first contribution in #796
- @bjrtx made their first contribution in #802
- @aidanholm made their first contribution in #836
- @monk-time made their first contribution in #845
Full Changelog: v10.2.0...v10.3.0
Version 10.2.0
-
New functions
iter_suppress
(thanks to jaraco, pochmann, and rhettinger)filter_map
(thanks to struktured)classify_unique
(thanks to haukex)totient
(from the itertools docs)reshape
(from the itertools docs)
-
Changes to existing functions
factor
,iter_index
,sieve
, andunique_justseen
were updated to match the itertools docsfirst
was was optimized (thanks to pochmann)takewhile_inclusive
was was refactored (thanks to eltoder)combination_with_replacement_index
was was optimized (thanks to elliotwutingfeng and rhettinger)nth_permutation
,nth_combination_with_replacement
,combination_index
, andcombination_with_replacement_index
were optimized (thanks to rhettinger)batched
now accepts astrict
argument (adapted from itertools docs)time_limited
was improved for Windows (thanks to haukex)
-
Other changes
- Several typing updates were made (thanks to obaltian and ilai-deutel)
- Some documentation issues were fixed (thanks to F-park, DimitriPapadopoulos, peterbygrave, shuuji3, eltoder, and homeworkprod)
Version 10.1.0
What's Changed
- Add more tests for
zip_broadcast()
by @kalekundert in #739 - Added takewhile_inclusive by @OlegAlexander in #736
- Speed up
zip_broadcast()
by pre-filling the scalar elements by @kalekundert in #740 - Added outer_product. by @OlegAlexander in #743
- Simplify
zip_broadcast
by @pochmann in #742 - Simplify
_zip_equal
by @pochmann in #744 - fix consume() type annotation by @obaltian in #746
- Version 10.1.0 by @bbayles in #747
New Contributors
- @OlegAlexander made their first contribution in #736
- @obaltian made their first contribution in #746
Full Changelog: v10.0.1...v10.1.0
Version 10.0.1 (docs only)
This is a docs-only release. There are no changes to the code in the package, and no changes distributed to PyPI. See PR #738 for details.
Version 10.0.0
What's Changed
- Update recipes.iter_index to match CPython PR 102360 by @bbayles in #690
- fixup - add missing commas to the readme function table by @lonnen in #692
- fixup remove 3.6 from tox by @lonnen in #693
- seekable: Add relative_seek by @karlb in #694
- Optimize _chunked_even_finite() by @elliotwutingfeng in #699
- Indexing of combinations with replacement by @Schoyen in #689
- Add notes for transposing empty inputs by @XuehaiPan in #700
- Add the polynomial_eval recipe by @bbayles in #703
- Add nth_combination_with_replacement by @Schoyen in #704
- Add sum_of_squares, sync with itertools by @bbayles in #706
- Issue #707: fix
iterate()
to enablefunc
to raise StopIteration + 3 unittests by @jrebiffe in #708 - Update polynomial_from roots and convolve by @bbayles in #709
- Issue #677: Improve
partition
by @pochmann in #710 - Issue #713: Fix
partial_product
(also simplify and clean up) by @pochmann in #714 - Issue #711: Optimize
pairwise
by @pochmann in #712 - Issue #715: Simplify/optimize
partial_product
by @pochmann in #716 - Issue #717: Improve
duplicates_justseen
by @pochmann in #718 - Fix unique_in_window to match described behavior by @elliotwutingfeng in #720
- Add polynomial_derivative recipe by @bbayles in #723
- Update recipes with CPython PRs: 105403 and 106371 by @bbayles in #731
- Changes for version 10.0.0 by @bbayles in #734
- Delay computation of numeric_range len until needed by @eltoder in #674
New Contributors
- @karlb made their first contribution in #694
- @elliotwutingfeng made their first contribution in #699
- @Schoyen made their first contribution in #689
- @XuehaiPan made their first contribution in #700
- @jrebiffe made their first contribution in #708
- @pochmann made their first contribution in #710
- @eltoder made their first contribution in #674
Full Changelog: v9.1.1...v10.0.0
Version 9.1.1 (docs only)
This is a docs-only release to fix issue #688. There is no corresponding PyPI release.