Reply to post: Re: Reinventing a more limited wheel

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

tb7842676

Re: Reinventing a more limited wheel

[(x, y, x/y) for x, y in ((x, f(x)) for x in input_data) if y > 0]

The new syntax is using less characters. This appeals to many programmers but I thought Python was not such a language.

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