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 c146e94 commit 0e463e5Copy full SHA for 0e463e5
graalpython/com.oracle.graal.python/src/com/oracle/graal/python/compiler/Compiler.java
@@ -1704,7 +1704,7 @@ public Void visit(StmtTy.Delete node) {
1704
@Override
1705
public Void visit(StmtTy.Expr node) {
1706
setLocation(node);
1707
- if (interactive) {
+ if (interactive && nestingLevel <= 1) {
1708
node.value.accept(this);
1709
addOp(PRINT_EXPR);
1710
} else if (!(node.value instanceof ExprTy.Constant)) {
0 commit comments