Skip to content

Commit a4e4fca

Browse files
committed
fix itertools.starmap
1 parent 7e15bd1 commit a4e4fca

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

graalpython/lib-graalpython/itertools.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -80,14 +80,14 @@ class starmap():
8080
"""
8181
def __init__(self, fun, iterable):
8282
self.fun = fun
83-
self.iterable = iterable
83+
self.iterable = iter(iterable)
8484

8585
def __iter__(self):
8686
return self
8787

8888
def __next__(self):
8989
obj = next(self.iterable)
90-
return self.fun(obj)
90+
return self.fun(*obj)
9191

9292

9393
class islice(object):

0 commit comments

Comments
 (0)