From b1297669d23ef24071dd8509b68bf16738c807af Mon Sep 17 00:00:00 2001 From: Julien Palard Date: Thu, 4 Apr 2024 08:36:33 +0200 Subject: [PATCH] Releasing v2.2 --- pipe.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/pipe.py b/pipe.py index 1d297ec..42ba7e9 100644 --- a/pipe.py +++ b/pipe.py @@ -1,7 +1,7 @@ """Library allowing a sh like infix syntax using pipes.""" __author__ = "Julien Palard " -__version__ = "2.1" +__version__ = "2.2" __credits__ = """Jérôme Schneider for teaching me the Python datamodel, and all contributors.""" @@ -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