diff --git a/README.rst b/README.rst index 7331ca66..d30c04c4 100644 --- a/README.rst +++ b/README.rst @@ -54,6 +54,7 @@ Python iterables. | | `interleave_evenly `_, | | | `zip_offset `_, | | | `zip_equal `_, | +| | `zip_broadcast `_, | | | `dotproduct `_, | | | `convolve `_, | | | `flatten `_, | diff --git a/docs/versions.rst b/docs/versions.rst index 1f481575..d8459bb2 100644 --- a/docs/versions.rst +++ b/docs/versions.rst @@ -5,6 +5,21 @@ Version History .. automodule:: more_itertools :noindex: +8.9.0 +----- + +* New functions + * :func:`interleave_evenly` (thanks to mbugert) + * :func:`repeat_each` (thanks to FinalSh4re) + * :func:`chunked_even` (thanks to valtron) + * :func:`map_if` (thanks to sassbalint) + * :func:`zip_broadcast` (thanks to kalekundert) + +* Changes to existing functions + * The type stub for :func:`chunked` was improved (thanks to PhilMacKay) + * The type stubs for :func:`zip_equal` and `zip_offset` were improved (thanks to maffoo) + * Building Sphinx docs locally was improved (thanks to MarcinKonowalczyk) + 8.8.0 ----- diff --git a/more_itertools/__init__.py b/more_itertools/__init__.py index 19a169fc..f2c0c7b4 100644 --- a/more_itertools/__init__.py +++ b/more_itertools/__init__.py @@ -1,4 +1,4 @@ from .more import * # noqa from .recipes import * # noqa -__version__ = '8.8.0' +__version__ = '8.9.0' diff --git a/more_itertools/more.py b/more_itertools/more.py index 59b7b0a1..edef3854 100755 --- a/more_itertools/more.py +++ b/more_itertools/more.py @@ -1471,7 +1471,7 @@ def padded(iterable, fillvalue=None, n=None, next_multiple=False): def repeat_each(iterable, n=2): - """Repeats each element in *iterable* _n_ times. + """Repeat each element in *iterable* *n* times. >>> list(repeat_each('ABC', 3)) ['A', 'A', 'A', 'B', 'B', 'B', 'C', 'C', 'C'] diff --git a/setup.cfg b/setup.cfg index eace846d..d85f02e6 100644 --- a/setup.cfg +++ b/setup.cfg @@ -1,5 +1,5 @@ [bumpversion] -current_version = 8.8.0 +current_version = 8.9.0 commit = True tag = False files = more_itertools/__init__.py