Reply to post:

Python creator Guido van Rossum sys.exit()s as language overlord

Tom 38 Silver badge

Ahem

result = (f(x) for x in input)

result = [x for x in result if x]

No point in having that extra list around wasting memory!

POST COMMENT House rules

Not a member of The Register? Create a new account here.

  • Enter your comment

  • Add an icon

Anonymous cowards cannot choose their icon

Biting the hand that feeds IT © 1998–2019