> Fine, the editor identify : and give you an indentation, what about the next > line? is it indented too? what gives the right for the IDE to indent it? what > if it is only one line after : that should be indented? now you need > backspace, sure, invisible }
I guess we had a misunderstanding here. I meant _some_ editor support (which is often named automatic indentation), you (and Vindaar) meant formatting that could be completely automated. That said, there are such formatters for Python (and there's also nimpretty). They reformat the code, but since they "know" that the indentation is important, they can do any formatting changes as long as the logical structure stays the same. If you have braces, you can deduce the logical structure from the braces; if you have indendation and no braces, you deduce the logical structure from the indentation.