First, the error message means 'item' is missing. You will need to assign your row as the item.
And if you want nil where there is no value, then use if statement to check there is something otherwise make that empty value 'nil'. Sorry, gotta run my train just arrived.
_______________________________________________ Tutor maillist - Tutor@python.org To unsubscribe or change subscription options: https://mail.python.org/mailman/listinfo/tutor