Hello, On Fri, 27 Nov 2020 21:21:48 +1100 Steven D'Aprano <st...@pearwood.info> wrote:
[] > We can have too many scopes as well as too few: > > - a single process-wide global scope is too few; > > - every (sub-)expression being its own scope is too many; > > so we're just arguing about where the Goldilocks Zone is. My argument > is that it is *function scope*, with comprehensions considered to be > an honorary function for that purpose. So, the alternative opinion you hear is that we could allow *optional* block-level scoping. People who don't need it can continue to not have it. Nor it's supposed to be too-widely used feature. (Yeah, just the same as str.format(), annotations, f"", or dataclasses - all they should be strictly optional, adhoc-use features ;-) ). -- Best regards, Paul mailto:pmis...@gmail.com _______________________________________________ Python-ideas mailing list -- python-ideas@python.org To unsubscribe send an email to python-ideas-le...@python.org https://mail.python.org/mailman3/lists/python-ideas.python.org/ Message archived at https://mail.python.org/archives/list/python-ideas@python.org/message/STNEPXLXI5C363X6E52EEBKB22BSXDBZ/ Code of Conduct: http://python.org/psf/codeofconduct/