Revision: 23769
Initial Code
Initial URL
Initial Description
Initial Title
Initial Tags
Initial Language
at February 12, 2010 13:01 by headsheez
Initial Code
def cleanpop(csvReader,parameters): for row in csvReader: fail=False match=True for test in parameters: ind = test[0]; val = test[1] #print "index %i and value %s"%(ind,val) if len(test) > 2: match = (test[2] != "in") if match and row[ind]==val: # print "match" fail=True elif val in row[ind]: # print "in" fail=True if fail: #print "failed row:" #print row continue yield row
Initial URL
Initial Description
Initial Title
csv cleanpop function
Initial Tags
Initial Language
Python