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

Chris Angelico rosuav at gmail.com
Fri Mar 2 09:51:55 EST 2018


On Fri, Mar 2, 2018 at 10:56 PM, Paul Moore <p.f.moore at gmail.com> wrote:
> On 2 March 2018 at 11:43, Chris Angelico <rosuav at gmail.com> wrote:
>> After dozens of posts and a wide variety of useful opinions and
>> concerns being raised, here is the newest version of PEP 572 for your
>> debating pleasure.
>
> This is a distinct improvement - thanks for incorporating the varied
> feedback so well.
>
> I still remain -1, though. Reasons scattered through the other thread
> but mostly relating to the fact that there are subtle differences
> between statement-local names and other names in Python (notably that
> you can't close over them). I don't think the benefits of the proposal
> are sufficient to justify introducing a new
> similar-but-subtly-different type of name.

That's fine :) I'm under no illusions that everyone will adore this
proposal (hey, I'm no more than +0.5 on it myself). The greatest goal
of this PEP is to record the arguments for and against each of the
viable alternatives, as a long-term document.

ChrisA


More information about the Python-ideas mailing list