How can I do something like the following in Python?
row = [unicode(x.strip()) if x for x in row]
Basically, a list comprehension where you carry out a function if the variable exists.
Thanks!