Gary Wessle wrote: > is there a way to make an assignment in the condition of "if"
No. > nx = re.compile('regex') > if x = nx.search(text): > funCall(text, x)) Use: nx = re.compile('regex') x = nx.search(text) if x: funCall(text, x) -- Ben Caradoc-Davies <[EMAIL PROTECTED]> http://wintersun.org/ "Those who deny freedom to others deserve it not for themselves." - Abraham Lincoln -- http://mail.python.org/mailman/listinfo/python-list