I just came across this piece of code
while 1: line = data.readline() if not line: break #...
and thought, there must
As of python 3.8 (which implements PEP-572) this code is now valid:
while line := data.readline(): # do something with line