This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author leduyquang753
Recipients Jérôme LAURENS, Mariatta, docs@python, leduyquang753, willingc
Date 2021-10-23.12:51:22
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1634993482.32.0.896414275793.issue35957@roundup.psfhosted.org>
In-reply-to
Content
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.
History
Date User Action Args
2021-10-23 12:51:22leduyquang753setrecipients: + leduyquang753, docs@python, willingc, Mariatta, Jérôme LAURENS
2021-10-23 12:51:22leduyquang753setmessageid: <1634993482.32.0.896414275793.issue35957@roundup.psfhosted.org>
2021-10-23 12:51:22leduyquang753linkissue35957 messages
2021-10-23 12:51:22leduyquang753create