Message 335165 - Python tracker

Message335165

Author Jérôme LAURENS
Recipients Jérôme LAURENS, docs@python
Date 2019-02-10.17:26:57
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1549819617.52.0.344509790006.issue35957@roundup.psfhosted.org>
In-reply-to
Content
https://docs.python.org/3/reference/lexical_analysis.html#indentation reads

Point 1:
"Tabs are replaced (from left to right) by one to eight spaces such that the total number of characters up to and including the replacement is a multiple of eight"

and in the next paragraph

Point 2:
"Indentation is rejected as inconsistent if a source file mixes tabs and spaces in a way that makes the meaning dependent on the worth of a tab in spaces"

In point 1, each tab has definitely a unique space counterpart, in point 2, tabs may have different space counterpart, which one is reliable ?

The documentation should state that Point 1 concerns cPython, or at least indicate that the 8 may depend on the implementation, which then gives sense to point 2.
History
Date User Action Args
2019-02-10 17:26:59Jérôme LAURENSsetrecipients: + Jérôme LAURENS, docs@python
2019-02-10 17:26:57Jérôme LAURENSsetmessageid: <1549819617.52.0.344509790006.issue35957@roundup.psfhosted.org>
2019-02-10 17:26:57Jérôme LAURENSlinkissue35957 messages
2019-02-10 17:26:57Jérôme LAURENScreate