Skip to content

Commit c926833

Browse files
committed
Updates for version 5.0.0
1 parent aefdbb4 commit c926833

File tree

3 files changed

+31
-2
lines changed

3 files changed

+31
-2
lines changed

docs/conf.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@
5050
# built documents.
5151
#
5252
# The short X.Y version.
53-
version = '4.3.0'
53+
version = '5.0.0'
5454
# The full version, including alpha/beta/rc tags.
5555
release = version
5656

docs/versions.rst

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,35 @@ Version History
44

55
.. automodule:: more_itertools
66

7+
5.0.0
8+
-----
9+
10+
* New itertools:
11+
* :func:`split_into` (thanks to rovyko)
12+
* :func:`unzip` (thanks to bmintz)
13+
* :func:`substrings` (thanks to pylang)
14+
15+
* Changes to existing itertools:
16+
* :func:`ilen` was optimized a bit (thanks to MSeifert04, achampion, and bmintz)
17+
* :func:`first_true` now returns ``None`` by default. This is the reason for the major version bump - see below. (thanks to sk and OJFord)
18+
19+
* Other changes:
20+
* Some code for old Python versions was removed (thanks to hugovk)
21+
* Some documentation mistakes were corrected (thanks to belm0 and hugovk)
22+
* Tests now run properly on 32-bit versions of Python (thanks to Millak)
23+
* Newer versions of CPython and PyPy are now tested against
24+
25+
The major version update is due to the change in the default return value of
26+
:func:`first_true`. It's now ``None``.
27+
28+
.. code-block:: python
29+
30+
>>> from more_itertools import first_true
31+
>>> iterable = [0, '', False, [], ()] # All these are False
32+
>>> answer = first_true(iterable)
33+
>>> print(answer)
34+
None
35+
736
4.3.0
837
-----
938

setup.py

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

2929
setup(
3030
name='more-itertools',
31-
version='4.3.0',
31+
version='5.0.0',
3232
description='More routines for operating on iterables, beyond itertools',
3333
long_description=get_long_description(),
3434
author='Erik Rose',

0 commit comments

Comments
 (0)