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 6d18391 commit 791dfcdCopy full SHA for 791dfcd
graalpython/benchmarks/src/meso/parrot-b2.py
@@ -1,7 +1,7 @@
1
#!/usr/bin/env python
2
# Copyright 2008-2010 Isaac Gouy
3
# Copyright (c) 2013, 2014, Regents of the University of California
4
-# Copyright (c) 2017, 2018, Oracle and/or its affiliates.
+# Copyright (c) 2017, 2020, Oracle and/or its affiliates.
5
# All rights reserved.
6
#
7
# Revised BSD license
@@ -91,7 +91,10 @@ def main(num):
91
def _zip(a, b):
92
iter_a = iter(a)
93
for elem in b:
94
- yield next(iter_a), elem
+ try:
95
+ yield next(iter_a), elem
96
+ except StopIteration:
97
+ return
98
99
100
def measure(num):
0 commit comments