Message335300
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. |
|
Date |
User |
Action |
Args |
2019-02-12 13:00:46 | Jérôme LAURENS | set | recipients:
+ Jérôme LAURENS, docs@python |
2019-02-12 13:00:45 | Jérôme LAURENS | set | messageid: <1549976445.99.0.841355747777.issue35957@roundup.psfhosted.org> |
2019-02-12 13:00:45 | Jérôme LAURENS | link | issue35957 messages |
2019-02-12 13:00:45 | Jérôme LAURENS | create | |
|