News for hackers. Stuff that matters.
Re:WTFPython: Exploring and understanding Python through sur... by eidorb on Tuesday May 31, 2022 @07:58AM (#31568534)
I may have gone with the following. Yes, some characters are repeated, but I'm not playing code golf.

  stripped_lines = (line.strip() for line in buffer.readlines())
  non_empty_stripped_lines = [line for line in stripped_lines if stripped_lines]
Re:WTFPython: Exploring and understanding Python through sur... by systemvoltage on Tuesday May 31, 2022 @12:49PM (#31571782)
Way better IMO. Clear variable names. No golfing.

Breaking down things in clear steps is underrated I think.