News for hackers. Stuff that matters.
Re:PEP 572: Python assignment expressions has been accepted by aviraldg on Tuesday July 03, 2018 @05:16AM (#17448633)
It also seems include a special case for if/while that lets you do:

    def foo():
        if randint(0, 3) as n:
            return n ** 2
        return 1337
which looks a bit better to me.
Re:PEP 572: Python assignment expressions has been accepted by icebraining on Tuesday July 03, 2018 @05:35AM (#17448751)
I think that's a rejected alternative proposal, not part of this PEP.
Re:PEP 572: Python assignment expressions has been accepted by s3m4j on Tuesday July 03, 2018 @06:37AM (#17449041)