homepage

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.

classification
Title: Inconsistent use of tabs and spaces in indentation not always detected
Type: behavior Stage: resolved
Components: Interpreter Core Versions: Python 3.7, Python 3.6, Python 2.7
process
Status: closed Resolution: duplicate
Dependencies: Superseder: TabError behavior doesn't match documentation
View: 24260
Assigned To: Nosy List: serhiy.storchaka, vstinner
Priority: normal Keywords:

Created on 2017年11月16日 21:36 by serhiy.storchaka, last changed 2022年04月11日 14:58 by admin. This issue is now closed.

Messages (1)
msg306399 - (view) Author: Serhiy Storchaka (serhiy.storchaka) * (Python committer) Date: 2017年11月16日 21:36
>>> exec('''if 1:
... print(1)
... \tprint(2)
... ''')
1
2
The first indented line uses 8 spaces. The second indented line uses 7 spaces + tabulation. Indentations are different, but TabError is not raised.
History
Date User Action Args
2022年04月11日 14:58:54adminsetgithub: 76234
2017年11月17日 09:14:38skrahsetstatus: open -> closed
superseder: TabError behavior doesn't match documentation
resolution: duplicate
stage: resolved
2017年11月16日 21:36:43serhiy.storchakacreate

AltStyle によって変換されたページ (->オリジナル) /