2 ms·
Code parsing in the Python REPL is different from that in Python source code files. Not MUCH different, but different. Specifically, if you try to paste a func
by randomswede 5y ago
Code parsing in the Python REPL is different from that in Python source code files. Not MUCH different, but different.
Specifically, if you try to paste a function definition that has blank lines in it, into the REPL, the first blank line will be interpreted as "end of function" and the rest of the function will become incorrectly indented garbage.