OK, I think the verdict is in and I will not try to debate it.
> Does opening a [{( and having any : statements inside
> just imply one more indentation level? Or can the statements inside
> be validly less indented than the line containing the = [...
> opening bracket?
I think this is a fun question. I can't think of any good reason to allow
indenting less than the containing statement, but I'm also wondering if there's
edge cases I might be missing. If not, then maybe we can indeed just require
adding another indentation level. And maybe that means that statements inside
expressions wouldn't require a Rube Goldberg machine ;)
If anyone is curious, I initially wrote [a much larger proposal with several
overlapping subproposals in which `if`, `try`, and `def` could all be used as
expressions](https://www.reddit.com/r/Python/comments/f5wm1d/proposal_compound_statement_expressions_complex/).
I figured that was hopelessly ambitious and just submitted the part I liked
best.
_______________________________________________
Python-ideas mailing list -- [email protected]
To unsubscribe send an email to [email protected]
https://mail.python.org/mailman3/lists/python-ideas.python.org/
Message archived at
https://mail.python.org/archives/list/[email protected]/message/EOUPQCV6EA6H6KDWWVEAXNDP7S5BM3MF/
Code of Conduct: http://python.org/psf/codeofconduct/