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 Jérôme LAURENS
Recipients Jérôme LAURENS, docs@python
Date 2019-02-12.13:00:45
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1549976445.99.0.841355747777.issue35957@roundup.psfhosted.org>
In-reply-to
Content
To be more precise, consider code

def f(x):
       \tx=0 # 7 spaces + one tab
        return x # 8 spaces

In cpython, both indentation levels are 8 and no indentation error is reported (this is the case where both tab size and alt tab size are equal)

If instead of 8 the tab would count for 6 spaces, then we would have 12 and 8 as indentation level, resulting in a mismatch and an indentation error being reported, according to the documentation. This is inconsistent.
Then either the documentation is faulty or cpython is.

Actually, cpython accepts a mix of space and tabs only when tabs are in 8, 16, 24... positions.
History
Date User Action Args
2019-02-12 13:00:46Jérôme LAURENSsetrecipients: + Jérôme LAURENS, docs@python
2019-02-12 13:00:45Jérôme LAURENSsetmessageid: <1549976445.99.0.841355747777.issue35957@roundup.psfhosted.org>
2019-02-12 13:00:45Jérôme LAURENSlinkissue35957 messages
2019-02-12 13:00:45Jérôme LAURENScreate