We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2f16935 commit b129766Copy full SHA for b129766
pipe.py
@@ -1,7 +1,7 @@
1
"""Library allowing a sh like infix syntax using pipes."""
2
3
__author__ = "Julien Palard <julien@python.org>"
4
-__version__ = "2.1"
+__version__ = "2.2"
5
__credits__ = """Jérôme Schneider for teaching me the Python datamodel,
6
and all contributors."""
7
@@ -112,8 +112,7 @@ def uniq(iterable, key=lambda x: x):
112
def permutations(iterable, r=None):
113
# permutations('ABCD', 2) --> AB AC AD BA BC BD CA CB CD DA DB DC
114
# permutations(range(3)) --> 012 021 102 120 201 210
115
- for x in itertools.permutations(iterable, r):
116
- yield x
+ yield from itertools.permutations(iterable, r)
117
118
119
@Pipe
0 commit comments