(test) ? a:b

Chris Angelico rosuav at gmail.com
Sat Oct 25 20:13:08 EDT 2014


On Sun, Oct 26, 2014 at 11:09 AM, Mark Lawrence <breamoreboy at yahoo.co.uk> wrote:
> Horrible IMHO, it just doesn't fit in my mind set.  Still each to their own.

Yeah, the comprehension version is way more explicit (though it
probably ought to be a set and a set comp, not a tuple and a list
comp), and not as good, IMO. But it explains and justifies the
original.

ChrisA



More information about the Python-list mailing list