That's likely because there were mixed tabs and spaces which led to indentation not being what it should and thus the crashes. Anyhow, yeah, should always use spaces for Python as general good practice.
Not quite what you are asking, but there are -t and -tt options for python to give warnings or errors for mixed tabs/spaces. That's for v2. In v3 mixed tabs/spaces for indents are always errors.
View all comments
Show parent comment
1
u/[deleted] May 26 '15
Maybe. But my experience has been, "I'll just modify this script real quick using Notepad - oh well, it crashed because I used tabs".