Quang Lê Duy <leduyquang...@gmail.com> added the comment: Reading from the source code (Parser/tokenizer.c from line 1364 as in Python 3.10), I derive these as the actual indentation rules: – Tab makes the indentation amount the next multiple of 8. – Among lines with the same indentation amount in the same parent line, the total number of tabs and spaces must match, in other words, the tabs' total padded width must be equal. – If it's an indent, the total number of spaces and tabs must exceed that of the parent line.
---------- nosy: +leduyquang753 _______________________________________ Python tracker <rep...@bugs.python.org> <https://bugs.python.org/issue35957> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com