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: Flexible indentation
Type: enhancement Stage: resolved
Components: Versions:
process
Status: closed Resolution: rejected
Dependencies: Superseder:
Assigned To: Nosy List: aggu, eric.smith
Priority: normal Keywords:

Created on 2020-01-10 08:55 by aggu, last changed 2022-04-11 14:59 by admin. This issue is now closed.

Messages (2)
msg359712 - (view) Author: aggu (aggu) Date: 2020-01-10 08:55
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
# …

.
msg359744 - (view) Author: Eric V. Smith (eric.smith) * (Python committer) Date: 2020-01-10 17:45
Please discuss this idea on the python-ideas mailing list first. It would also certainly require a PEP.

But I don't want to get your hopes up: there's almost no chance that this would be accepted.

I'm going to close this issue. If the idea gains any traction, we can re-open it.
History
Date User Action Args
2022-04-11 14:59:25adminsetgithub: 83465
2020-01-10 17:45:10eric.smithsetstatus: open -> closed

nosy: + eric.smith
messages: + msg359744

resolution: rejected
stage: resolved
2020-01-10 08:55:34aggucreate