Skip to content

Commit

Permalink
Releasing v2.2
Browse files Browse the repository at this point in the history
  • Loading branch information
JulienPalard committed Apr 4, 2024
1 parent 2f16935 commit b129766
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions pipe.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
"""Library allowing a sh like infix syntax using pipes."""

__author__ = "Julien Palard <[email protected]>"
__version__ = "2.1"
__version__ = "2.2"
__credits__ = """Jérôme Schneider for teaching me the Python datamodel,
and all contributors."""

Expand Down Expand Up @@ -112,8 +112,7 @@ def uniq(iterable, key=lambda x: x):
def permutations(iterable, r=None):
# permutations('ABCD', 2) --> AB AC AD BA BC BD CA CB CD DA DB DC
# permutations(range(3)) --> 012 021 102 120 201 210
for x in itertools.permutations(iterable, r):
yield x
yield from itertools.permutations(iterable, r)


@Pipe
Expand Down

0 comments on commit b129766

Please sign in to comment.