News for hackers. Stuff that matters.
Re:WTFPython: Exploring and understanding Python through sur... by d0mine on Tuesday May 31, 2022 @12:39PM (#31571651)
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]

There are no comments on this comment yet.