3 ms·
Sure, but if you somehow manage to screw up the indentation then no IDE can possibly restore it for you because the information needed to do it is lost. And th
by lisper 9y ago
Sure, but if you somehow manage to screw up the indentation then no IDE can possibly restore it for you because the information needed to do it is lost. And there are a LOT of ways that indentation can get screwed up. If your code ever leaves the Python ecosystem (e.g. gets published on the web) then all bets are off because the entire digital world outside of the Python-sphere is built on the assumption that whitespace is fungible.
- true_religion 9y agoI don't know about that. I've never screwed up identaton so much that I couldn't correct it simply by selecting everything I just pasted and hitting tab a couple times in my IDE (PyCharm). Similarly, copying code from StackOverflow, Github and random blogs have all worked without any issues. So it can't be as easy as you imply.
- lisper 9y agoWhat can I say? It happened to me a lot before I started using the pass trick.