News for hackers. Stuff that matters.
Re:PEP 572: Python assignment expressions has been accepted by mockingbirdy on Tuesday July 03, 2018 @04:59PM (#17453580)
I think I'll use this exactly to avoid duplication in while loops:

    bytes = next()
    while bytes:
        # do something ...
        bytes = next()

It's possible to use while True and break, but that isn't very elegant.

There are no comments on this comment yet.