You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardexpand all lines: graalpython/com.oracle.graal.python.pegparser.test/src/com/oracle/graal/python/pegparser/test/LambdaInFunctionTests.java
+3-1
Original file line number
Diff line number
Diff line change
@@ -1,5 +1,5 @@
1
1
/*
2
-
* Copyright (c) 2019, 2023, Oracle and/or its affiliates. All rights reserved.
2
+
* Copyright (c) 2019, 2025, Oracle and/or its affiliates. All rights reserved.
3
3
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4
4
*
5
5
* The Universal Permissive License (UPL), Version 1.0
Copy file name to clipboardexpand all lines: graalpython/com.oracle.graal.python.pegparser.test/src/com/oracle/graal/python/pegparser/test/YieldStatementTests.java
+3-1
Original file line number
Diff line number
Diff line change
@@ -1,5 +1,5 @@
1
1
/*
2
-
* Copyright (c) 2019, 2023, Oracle and/or its affiliates. All rights reserved.
2
+
* Copyright (c) 2019, 2025, Oracle and/or its affiliates. All rights reserved.
3
3
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4
4
*
5
5
* The Universal Permissive License (UPL), Version 1.0
Copy file name to clipboardexpand all lines: graalpython/com.oracle.graal.python.pegparser/src/com/oracle/graal/python/pegparser/scope/ScopeEnvironment.java
+12-2
Original file line number
Diff line number
Diff line change
@@ -1,5 +1,5 @@
1
1
/*
2
-
* Copyright (c) 2021, 2024, Oracle and/or its affiliates. All rights reserved.
2
+
* Copyright (c) 2021, 2025, Oracle and/or its affiliates. All rights reserved.
3
3
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4
4
*
5
5
* The Universal Permissive License (UPL), Version 1.0
Copy file name to clipboardexpand all lines: graalpython/com.oracle.graal.python.test.integration/src/com/oracle/graal/python/test/integration/generator/GeneratorTests.java
+117-2
Original file line number
Diff line number
Diff line change
@@ -1,5 +1,5 @@
1
1
/*
2
-
* Copyright (c) 2017, 2023, Oracle and/or its affiliates.
2
+
* Copyright (c) 2017, 2025, Oracle and/or its affiliates.
3
3
* Copyright (c) 2013, Regents of the University of California
4
4
*
5
5
* All rights reserved.
@@ -72,7 +72,7 @@ public void desugared() {
72
72
}
73
73
74
74
@Test
75
-
publicvoidtestYieldFrom() {
75
+
publicvoidtestYieldFromSimple() {
76
76
Stringsource = "def gen1():\n" +
77
77
" yield 1\n" +
78
78
" yield 2\n" +
@@ -83,4 +83,119 @@ public void testYieldFrom() {
83
83
"print(list(gen2()))\n";
84
84
assertPrints("[1, 2]\n", source);
85
85
}
86
+
87
+
@Test
88
+
publicvoidtestYieldFromIterable() {
89
+
// yield from should extract an iterator from a non-generator argument
0 commit comments