On 2010-03-31 00:57:51 -0700, Peter Otten <__pete...@web.de> said:
Pierre Quentel wrote:

I'm surprised nobody proposed a solution with itertools ;-)

next(itertools.takewhile(lambda _: a == b, ["yes"]), "no")

You spoke to soon :)

I salute you, sir, for upholding the standards of this group.

-Tom

--
http://mail.python.org/mailman/listinfo/python-list

Reply via email to