Skip to content

Commit b124683

Browse files
authored
Merge pull request more-itertools#347 from erikrose/8.0.0-release
8.0.0 release
2 parents 3e3a9a7 + 4661c94 commit b124683

File tree

5 files changed

+30
-4
lines changed

5 files changed

+30
-4
lines changed

README.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ Python iterables.
2222
| | `split_before <https://more-itertools.readthedocs.io/en/stable/api.html#more_itertools.split_before>`_, |
2323
| | `split_after <https://more-itertools.readthedocs.io/en/stable/api.html#more_itertools.split_after>`_, |
2424
| | `split_into <https://more-itertools.readthedocs.io/en/stable/api.html#more_itertools.split_into>`_, |
25+
| | `split_when <https://more-itertools.readthedocs.io/en/stable/api.html#more_itertools.split_when>`_, |
2526
| | `bucket <https://more-itertools.readthedocs.io/en/stable/api.html#more_itertools.bucket>`_, |
2627
| | `unzip <https://more-itertools.readthedocs.io/en/stable/api.html#more_itertools.unzip>`_, |
2728
| | `grouper <https://more-itertools.readthedocs.io/en/stable/api.html#more_itertools.grouper>`_, |

docs/conf.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@
4949
# built documents.
5050
#
5151
# The short X.Y version.
52-
version = '7.2.0'
52+
version = '8.0.0'
5353
# The full version, including alpha/beta/rc tags.
5454
release = version
5555

docs/versions.rst

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,32 @@ Version History
55
.. automodule:: more_itertools
66
:noindex:
77

8+
8.0.0
9+
-----
10+
11+
* New itertools and other additions
12+
* This library now ships type hints for use with mypy.
13+
(thanks to ilai-deutel for the implementation, and to gabbard and fmagin for assistance)
14+
* :func:`split_when` (thanks to jferard)
15+
* :func:`repeat_last` (thanks to d-ryzhikov)
16+
17+
* Changes to existing itertools:
18+
* The implementation for :func:`set_partitions` was improved. (thanks to jferard)
19+
* :func:`partition` was optimized for expensive predicates. (thanks to stevecj)
20+
* :func:`unique_everseen` and :func:`groupby_transform` were re-factored. (thanks to SergBobrovsky)
21+
* The implementation for :func:`difference` was improved. (thanks to Jabbey92)
22+
23+
24+
* Other changes
25+
* Python 3.4 has reached its end of life and is no longer supported.
26+
* Python 3.8 is officially supported. (thanks to jdufresne)
27+
* The ``collate`` function has been deprecated.
28+
It raises a ``DeprecationWarning`` if used, and will be removed in a future release.
29+
* :func:`one` and :func:`only` now provide more informative error messages. (thanks to gabbard)
30+
* Unit tests were moved outside of the main package (thanks to jdufresne)
31+
* Various documentation fixes (thanks to kriomant, gabbard, jdufresne)
32+
33+
834
7.2.0
935
-----
1036

more_itertools/more.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1203,8 +1203,7 @@ def padded(iterable, fillvalue=None, n=None, next_multiple=False):
12031203

12041204

12051205
def repeat_last(iterable, default=None):
1206-
"""After the *iterable* is exhausted, keep yielding its last element,
1207-
if the iterable was not empty.
1206+
"""After the *iterable* is exhausted, keep yielding its last element.
12081207
12091208
>>> list(islice(repeat_last(range(3)), 5))
12101209
[0, 1, 2, 2, 2]

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ def get_long_description():
2222

2323
setup(
2424
name='more-itertools',
25-
version='7.2.0',
25+
version='8.0.0',
2626
description='More routines for operating on iterables, beyond itertools',
2727
long_description=get_long_description(),
2828
author='Erik Rose',

0 commit comments

Comments
 (0)