News for hackers. Stuff that matters.
Re:Python 3.8.0a1 is now available for testing by klodolph on Monday February 04, 2019 @01:33PM (#19079156)
I agree that it's a violation of the “one and only one” maxim, but that maxim is a bit hard to take as an absolute. I think the problem is that there are already a lot of ways to write things in Python, the biggest example that comes to mind is list comprehensions.

    outputs = [f(x) for x in inputs]
Versus:

    outputs = []
    for x in inputs:
        outputs.append(f(x))
The assignment expression lets you:

    outputs = [y for x in inputs
               if (y := f(x)) is not None]
I know that more complicated list comprehensions in Python are a bit of a sore point for some people, but I would say that they’re also inherently unpythonic, and I like them.
Re:Python 3.8.0a1 is now available for testing by legostormtroopr on Monday February 04, 2019 @04:59PM (#19081053)

    outputs = [y for x in inputs
               if (y := f(x)) is not None]
I can't stand this new syntax, y is declared and assigned after the first instance of its use.