Commit c6c4d45
committed
Revert interactive print nesting check
The in_conditional_block check was incorrect. CPython's c_nestlevel
only tracks function/class scopes, not compound blocks. Expression
statements inside if/for/while/try/with at module level should still
be auto-printed in interactive mode.1 parent 6d17c83 commit c6c4d45
1 file changed
+1
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2156 | 2156 | | |
2157 | 2157 | | |
2158 | 2158 | | |
2159 | | - | |
| 2159 | + | |
2160 | 2160 | | |
2161 | 2161 | | |
2162 | 2162 | | |
| |||
0 commit comments