Iteration-utilities

Latest version: v0.13.0

Safety actively analyzes 688843 Python packages for vulnerabilities to keep your Python projects secure.

Scan your dependencies

Page 2 of 4

0.9.0

^^^^^^^^^^^^^^^^^^^^^^^^^^

This library does not support Python 2.7 anymore. Attempting to install
``iteration_utilities`` on Python <= 3.4 should not work anymore.

- Add the statistics functions introduced in Python 3.6 and 3.8 as methods
on the ``Iterable`` class. This includes:

- ``fmean`` (Python >= 3.8)
- ``geometric_mean`` (Python >= 3.8)
- ``harmonic_mean`` (Python >= 3.6)
- ``multimode`` (Python >= 3.8)
- ``quantiles`` (Python >= 3.8)

- Add a new recipe from the ``itertools`` documentation: ``nth_combination``.

0.8.0

^^^^^^^^^^^^^^^^^^^^^^^^^^

Support for Python 3.3 and 3.4 was dropped. But it now supports Python 3.7 and
3.8. This will be the last release supporting Python 2.

- ``Iterable.islice`` will raise a more appropriate ``TypeError`` when called
without arguments.

- ``partial`` only allows plain ``str`` as keyword-names in CPython 3.8.

- Some constants have been available in the module namespace that were intended
to be private. These have been removed. This includes ``EQ_PY2``, ``GE_PY3``
and similar constants.

- Added support for PyPy (3.5 and 3.6).

- Use experimental vectorcall protocol (PEP 590) in a few places.


Contributors:

- Solomon Ucko (sollyucko)

0.7.0

^^^^^^^^^^^^^^^^^^^^^^^^^^

- Add ``__sizeof__`` method for ``partial`` to return a more accurate size
for the instance.

- Fixed a problem when creating ``merge`` instances depending on the compiler.

0.6.1

^^^^^^^^^^^^^^^^^^^^^^^^^^

- The ``__next__`` or ``next`` method of the processed iterator is not cached
in the ``iteration_utilities`` iterators anymore. This correctly handles the
(rare) case that this method is reassigned or deleted.

0.6.0

^^^^^^^^^^^^^^^^^^^^^^^^^^

- Renamed ``func`` parameter name of ``partition`` to ``pred``.

- Renamed ``function`` parameter name of ``tabulate`` to ``func``.

- The ``key`` attribute of ``ItemIdxKey`` throws an ``AttributeError`` if it
is not set and an attempt is made to get or delete it.

- Added several attributes to classes.

- Fixed a Bug in ``deepflatten`` when ``isinstance`` fails for the classes
given as ``types`` or ``ignore`` parameter.

- Changed internal package structure (shouldn't affect end-users that imported
everything from ``iteration_utilities`` directly).

- improved performance of ``all_isinstance`` and ``any_isinstance``.

- improved performance of ``replicate``.

- ``replicate`` now throws an exception if the ``times`` argument is smaller
or equal to 1.

- corrected handling of exceptions and overflow in ``__length_hint__`` methods.

0.5.2

^^^^^^^^^^^^^^^^^^^^^^^^^^

- fix release (again).

Page 2 of 4

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.