3 ms·
The problem isn't entering a tab character (I'd be pasting code from a real editor anyway). The problem is that whatever indentation you use, whether it's tabs
by prodigal_erik 15y ago
The problem isn't entering a tab character (I'd be pasting code from a real editor anyway). The problem is that whatever indentation you use, whether it's tabs or spaces, is destroyed by many common tools, and un-indented Python is ambiguous and can't be fixed without guesswork.
- Goladus 15y agoTabs are more likely to be destroyed than spaces. Simply displaying a file in a character-based terminal shreds tabs. Spaces are fine. It's true there are tools, especially on the web, that eliminate whitespace and if you rely on those tools using python is going to be a problem. But generally it's pretty obvious whether that's going to be an issue. Tab problems tend to sneak up when you least expect it.