4 ms·
I'd love Python if it weren't for whitespace. I wanna cut/paste code into a REPL, and Python makes that difficult.
by devoutsalsa 1y ago
I'd love Python if it weren't for whitespace. I wanna cut/paste code into a REPL, and Python makes that difficult.
- ghc 1y agoI find that the IPython REPL has downright amazing multiline support. I've always been envious of it when using GHCI. But even the standard Python REPL supports multiline paste just fine. So what exactly are you talking about? Rolling your own?
- properpopper 1y agoYou can't copy a method from a class and then paste it in the REPL, it will complain about indentation. Workarounds: 1) copy whole class 2) remove indentation before copying
- ghc 1y agoThat's only a problem in the base python interpreter. IPython has handled this well for over 20 years.
- wewewedxfgdf 1y agoBut the previous commenter just improved the Ruby code by adding whitespace!
- jjrh 1y agoBegin/end should be optional. Some things would just be so much easier to follow, map/lambda stuff cleaner.