Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

In that example, a good editor should indent pasted_snippet at least to the first indent level. If you wanted it to be part of the if statement then you could just select the pasted block (both Vim and Emacs should be able to do this with a single command) and indent it by one more.

Python's use of semantic white space is more a function of it's inheritance than anything. It's based off of ABC[1].

[1] http://en.wikipedia.org/wiki/ABC_%28programming_language%29



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

Search: