On Jun 23, 2020, at 16:26, Guido van Rossum <gu...@python.org> wrote: > > (I'm replying to several messages in one reply. But there is too much to > respond to so this is merely the first batch.)
I’m really glad to know that the PEP 622 team is deliberating internally about all the suggestions and comments made on this thread. Thank you, and I look forward to the updated PEP. > On Tue, Jun 23, 2020 at 12:07 PM Barry Warsaw <ba...@python.org> wrote: > Couldn’t you adopt a flat indentation scheme with the minor change of moving > the expression into a `match:` clause? E.g. > > match: > expression > case a: > foo() > case b: > bar() > else: > baz() > > I didn’t see that in the rejected alternatives. I’ll just answer the one question Guido asked (Apple Mail didn’t seem to quote it properly): > We discussed it, but ultimately rejected it because the first block would be > a novelty in Pythonic syntax: an indented block whose content is a single > expression rather than a sequence of statements. Do you think we need to add > this to the Rejected Ideas section? Yes, I think with some short rationale, it will short-circuit this question in subsequent discussions. Cheers, -Barry
signature.asc
Description: Message signed with OpenPGP
_______________________________________________ Python-Dev mailing list -- python-dev@python.org To unsubscribe send an email to python-dev-le...@python.org https://mail.python.org/mailman3/lists/python-dev.python.org/ Message archived at https://mail.python.org/archives/list/python-dev@python.org/message/UMJWAAP2QIUYWYZREK5WIIY6FKC576WA/ Code of Conduct: http://python.org/psf/codeofconduct/