[Python-ideas] PEP 572 version 2: Statement-Local Name Bindings

Chris Angelico rosuav at gmail.com
Sat Mar 24 05:25:04 EDT 2018


On Sat, Mar 24, 2018 at 3:16 PM, Masayuki YAMAMOTO
<ma3yuki.8mamo10 at gmail.com> wrote:
> FWIW, I thought another way which provides cache object library, it seems to
> just work in some cases. But it doesn't create statement local scope and
> might be difficult to read because looks ordinary expression doing magic.
> Chris, would you append the library to alternative proposal section?
>

Done. In the interests of brevity, I used a version that just uses a
dict, which is a bit less pretty but doesn't require a lengthy class
statement.

ChrisA


More information about the Python-ideas mailing list