csv blank fields

Lawrence D'Oliveiro ldo at geek-central.gen.new_zealand
Mon Jun 29 23:47:26 EDT 2009


In message <mailman.2218.1246122370.8015.python-list at python.org>, MRAB 
wrote:

>      row = [r or "NULL" for r in row]

I know that, in this particular case, all the elements of row are strings, 
and the only string that is equivalent to False is the empty string, but 
still

    row = [[r, "NULL"][r == ""] for r in row]





More information about the Python-list mailing list