4 ms·
I program in Python for a living and I curse significant whitespace every single work day. Especially when I try to copy paste some code into the shell. It's on
by Grue3 12y ago
I program in Python for a living and I curse significant whitespace every single work day. Especially when I try to copy paste some code into the shell. It's one of the worst misfeatures of the language, and it wouldn't even be necessary if there was an "end" keyword.
- klibertp 12y agoUse IPython and %cpaste magic. Works well.
- Grue3 12y agoI use IPython. %cpaste doesn't work all the time if you're copying from the middle of a function. And even if I just paste a one-liner that starts with a few spaces, why the hell does it even bother to complain about that? Oh wow, this one line of code (which happens to be the entirety of code I'm asking you to execute) is indented wrong, tell me something I don't know! What a PITA.