> I want to fix an error in some code I have installed, ...
Apart from all the reasons why it's bad (see the Python Zen #10). One way to do 
it is:
    return [i or '' for i in a]
-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to