"dcrespo" <[EMAIL PROTECTED]> writes: > Hi all, > > How can I replace all None values with the string 'Null' in a > dictionary?
Iterate over everything in the dictionary: for key, item in mydict.items(): if item is None: mydict[key] = 'Null' <mike -- Mike Meyer <[EMAIL PROTECTED]> http://www.mired.org/home/mwm/ Independent WWW/Perforce/FreeBSD/Unix consultant, email for more information. -- http://mail.python.org/mailman/listinfo/python-list