Hacker News new | ask | show | jobs
by d0mine 1483 days ago
It is unlikely (unless there is a benchmark that says otherwise). Before the walrus operator, the single item loop could have been used:

  nonblank = [value for line in file for value in [line.strip()] if value]