[Python-ideas] Proposal: A Reduce-Map Comprehension and a "last" builtin

Chris Angelico rosuav at gmail.com
Fri Apr 6 19:54:17 EDT 2018


On Sat, Apr 7, 2018 at 9:50 AM, Steven D'Aprano <steve at pearwood.info> wrote:
> On Fri, Apr 06, 2018 at 08:06:45AM -0700, Guido van Rossum wrote:
>
>> Please join the PEP 572 discussion. The strongest contender currently is `a
>> := f()` and for good reasons.
>
> Where has that discussion moved to? The threads on python-ideas seem to
> have gone quiet, and the last I heard you said that you, Chris and Nick
> were discussing some issues privately.
>

I'm still working on getting some code done, and I'm stuck due to a
lack of time on my part. It'll likely move forward this weekend, and
if I can do what I'm trying to do, I'll have a largely rewritten PEP
to discuss.

(Never call ANYTHING "trivial" or "simple" unless you already know the
solution to it. Turns out that there are even more subtleties to "make
it behave like assignment" than I had thought.)

ChrisA


More information about the Python-ideas mailing list