Hacker News new | past | comments | ask | show | jobs | submit login

Some 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.



For (2), ipython and %cpaste are your friends.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: