News for hackers. Stuff that matters.
Re:Python indentation: very nice explanation for the curious... by DocSavage on Friday September 21, 2007 @02:02PM (#58020)
- They don't like the idea that cut & paste of code snippets will break the code due to significant indentations. Counter-arguments include (1) you should probably beautify the code anyway and check for issues while doing it, (2) code snippets should be in modules with smallish functions.
Re:Python indentation: very nice explanation for the curious... by Goladus on Friday September 21, 2007 @02:22PM (#58028)
That's actually a valid issue, and not really addressed by the article. Cutting and pasting does occasionally require some extra care.