python-iterutils 0.2.8__tar.gz → 0.2.9__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {python_iterutils-0.2.8 → python_iterutils-0.2.9}/PKG-INFO +1 -1
- {python_iterutils-0.2.8 → python_iterutils-0.2.9}/iterutils/__init__.py +4 -3
- {python_iterutils-0.2.8 → python_iterutils-0.2.9}/pyproject.toml +1 -1
- {python_iterutils-0.2.8 → python_iterutils-0.2.9}/LICENSE +0 -0
- {python_iterutils-0.2.8 → python_iterutils-0.2.9}/iterutils/py.typed +0 -0
- {python_iterutils-0.2.8 → python_iterutils-0.2.9}/readme.md +0 -0
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
# encoding: utf-8
|
|
3
3
|
|
|
4
4
|
__author__ = "ChenyangGao <https://chenyanggao.github.io>"
|
|
5
|
-
__version__ = (0, 2,
|
|
5
|
+
__version__ = (0, 2, 9)
|
|
6
6
|
__all__ = [
|
|
7
7
|
"Yield", "YieldFrom", "GenStep", "GenStepIter", "iterable",
|
|
8
8
|
"async_iterable", "run_gen_step", "run_gen_step_iter",
|
|
@@ -700,7 +700,8 @@ def foreach(
|
|
|
700
700
|
else:
|
|
701
701
|
for arg in iterable:
|
|
702
702
|
value(arg)
|
|
703
|
-
|
|
703
|
+
else:
|
|
704
|
+
return async_foreach(value, iterable, *iterables, threaded=threaded)
|
|
704
705
|
|
|
705
706
|
|
|
706
707
|
async def async_foreach(
|
|
@@ -731,7 +732,7 @@ def through(
|
|
|
731
732
|
"""
|
|
732
733
|
if threaded or not isinstance(iterable, Iterable):
|
|
733
734
|
return async_through(iterable, take_while, threaded=threaded)
|
|
734
|
-
|
|
735
|
+
elif take_while is None:
|
|
735
736
|
for _ in iterable:
|
|
736
737
|
pass
|
|
737
738
|
else:
|
|
File without changes
|
|
File without changes
|
|
File without changes
|