[New-bugs-announce] [issue39284] Flexible indentation

aggu report at bugs.python.org
Fri Jan 10 03:55:34 EST 2020


New submission from aggu <agguser at gmail.com>:

Indentation should not be "too strict", any number of leading whitespaces greater that its "parent" or "peer" should be allowed. For example, the following code should be allow:

a = 1
# step 1
	# step 1.1
		a = a + 1
	# step 1.2
		a = a * 2
# step 2
	# …

, which is more readable, I think, than:

a = 1
# step 1
# step 1.1
a = a + 1
# step 1.2
a = a * 2
# step 2
# …

.

----------
messages: 359712
nosy: aggu
priority: normal
severity: normal
status: open
title: Flexible indentation
type: enhancement

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


More information about the New-bugs-announce mailing list