3 ms·
"Making it hard to copy-paste code from the web" is something that I would consider a feature, to be honest.
by rglullis 10y ago
"Making it hard to copy-paste code from the web" is something that I would consider a feature, to be honest.
- dalke 10y agoSome similar failure cases are: 1) when I make a presentation using Keynote, it drops the leading spaces when it exports to PDF, so my students can't simply copy/paste my example code. 2) the interpretation of blank lines with no indentation on the repl means "end of current code", which is different than in a .py file. This means if I copy&paste from my in-development code to the repl, I can get syntax error unless I carefully ensure that all blank lines inside of indented code blocks are also indented.
- rglullis 10y agoFor (2), ipython and %cpaste are your friends.