Skip to content

Commit 8c73bf3

Browse files
committed
Revert "itertools: add product() implementation"
This reverts commit 2dbcd8c.
1 parent 45aebb1 commit 8c73bf3

File tree

1 file changed

+0
-9
lines changed

1 file changed

+0
-9
lines changed

itertools/itertools.py

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -55,12 +55,3 @@ def tee(iterable, n=2):
5555
def starmap(function, iterable):
5656
for args in iterable:
5757
yield function(*args)
58-
59-
def product(*args, repeat=1):
60-
if not args:
61-
yield ()
62-
else:
63-
args = args*repeat
64-
for a in args[0]:
65-
for prod in product(*args[1:]):
66-
yield (a,)+prod

0 commit comments

Comments
 (0)