Feb. 15, 2014
2:41 a.m.
On 15 February 2014 11:40, Nick Coghlan <ncoghlan@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@gmail.com | Brisbane, Australia