[Python-ideas] if expensive_computation() as x:
Nick Coghlan
ncoghlan at gmail.com
Sat Feb 15 02:41:37 CET 2014
On 15 February 2014 11:40, Nick Coghlan <ncoghlan at gmail.com> wrote:
> The re.match case would then be written as:
>
> match = first_true(pattern.match for pattern in patterns)
>
Oops, that was supposed to be:
match = first_true(pattern.match(line) for pattern in patterns)
Cheers,
Nick.
--
Nick Coghlan | ncoghlan at gmail.com | Brisbane, Australia
More information about the Python-ideas
mailing list