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 bf5b153 commit 91e116eCopy full SHA for 91e116e
graalpython/com.oracle.graal.python/src/com/oracle/graal/python/parser/ScopeTranslator.java
@@ -225,7 +225,11 @@ public T visitGlobal_stmt(Python3Parser.Global_stmtContext ctx) {
225
@Override
226
public T visitNonlocal_stmt(Python3Parser.Nonlocal_stmtContext ctx) {
227
for (TerminalNode name : ctx.NAME()) {
228
- environment.addNonlocal(name.getText());
+ String identifier = name.getText();
229
+ environment.addNonlocal(identifier);
230
+ if (trackCells) {
231
+ environment.registerCellVariable(identifier);
232
+ }
233
}
234
return super.visitNonlocal_stmt(ctx);
235
0 commit comments