Y
Hacker News
new
|
ask
|
show
|
jobs
by
Dagger2
1209 days ago
There's also:
while data := fh.read(131072): # do stuff
which is a lot nicer than:
while True: data = fh.read() if not data: break # do stuff