[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Python indentation (3 spaces)

On 10/15/2018 12:37 PM, Chris Angelico wrote:
> On Tue, Oct 16, 2018 at 6:34 AM Peter J. Holzer <hjp-python at hjp.at> wrote:
>> On 2018-10-15 14:12:54 +0200, Antoon Pardon wrote:

>>> Spaces that replaced a tab by accident, are easy to catch too. They are all
>>> those lines that show up when you do a diff with the previous version that
>>> shouldn't show up.
>> And where is the AI that decides which lines in a diff are should show
>> up?
>> Whether a line in a diff should or should not show up seems to me to be
>> even harder to determine than whether a tab fits the syntax.
> If there's a change, it shows up. If there's no change, it doesn't show up.
> Ergo, if you accidentally replace a tab with spaces, it's a change,
> and it shows up.

Unless you have your diff tool set to ignore whitespace-only changes.  :(