In article <qot7fw8s3la....@ruuvi.it.helsinki.fi>, jpiit...@ling.helsinki.fi says... > > If you mean literally some_predicate, then perhaps this. > > if some_predicate: > for x in seq: > handle(x) >
Careful. See Chris Warrick answer for the correct position of the 'if' statement. -- https://mail.python.org/mailman/listinfo/python-list