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
generators should take the closure from the generator function that they are created from, not cache them. since the defaults can be changed, no generator function is actually stateless
Copy file name to clipboardExpand all lines: graalpython/com.oracle.graal.python/src/com/oracle/graal/python/builtins/objects/generator/PGenerator.java
Copy file name to clipboardExpand all lines: graalpython/com.oracle.graal.python/src/com/oracle/graal/python/nodes/function/FunctionDefinitionNode.java
+1Lines changed: 1 addition & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -64,6 +64,7 @@ public FunctionDefinitionNode(String functionName, String enclosingClassName, Ex
64
64
this.arity = arity;
65
65
assertdefaults == null || Arrays.stream(defaults).noneMatch(x -> x == null);
66
66
this.defaults = defaults;
67
+
assertkwDefaults == null || Arrays.stream(kwDefaults).noneMatch(x -> x == null);
Copy file name to clipboardExpand all lines: graalpython/com.oracle.graal.python/src/com/oracle/graal/python/nodes/function/GeneratorFunctionDefinitionNode.java
Copy file name to clipboardExpand all lines: graalpython/com.oracle.graal.python/src/com/oracle/graal/python/nodes/generator/GeneratorFunctionRootNode.java
0 commit comments