[New-bugs-announce] [issue32053] Inconsistent use of tabs and spaces in indentation not always detected

Serhiy Storchaka report at bugs.python.org
Thu Nov 16 16:36:43 EST 2017


New submission from Serhiy Storchaka <storchaka+cpython at gmail.com>:

>>> 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.

----------
components: Interpreter Core
messages: 306399
nosy: haypo, serhiy.storchaka
priority: normal
severity: normal
status: open
title: Inconsistent use of tabs and spaces in indentation not always detected
type: behavior
versions: Python 2.7, Python 3.6, Python 3.7

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue32053>
_______________________________________


More information about the New-bugs-announce mailing list