Y
Hacker News
new
|
ask
|
show
|
jobs
by
devoutsalsa
296 days ago
I'd love Python if it weren't for whitespace. I wanna cut/paste code into a REPL, and Python makes that difficult.
3 comments
ghc
296 days ago
I 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?
link
properpopper
296 days ago
You 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
link
ghc
296 days ago
That's only a problem in the base python interpreter. IPython has handled this well for over 20 years.
link
jjrh
295 days ago
Begin/end should be optional. Some things would just be so much easier to follow, map/lambda stuff cleaner.
link
wewewedxfgdf
296 days ago
But the previous commenter just improved the Ruby code by adding whitespace!
link