Paul Rubin wrote: > "Michael Tiller" <mtiller at ford.com> writes: > > > Tim Peters suggested one a few days ago: > > if [match for match in [re.match(pattern,string)]][0]: > # do something with match object No, he was afraid of it. :-) Mixing test with assigment is considered bad style in C/C++ and othen indicates an error. CB