Steven D'Aprano wrote:
Watch out if any of the existing values already startswith 'myPrefix' You can end up with trouble just as confusing as if 'myPrefix' is an empty string<snip> for key, value in varDic.iteritems(): varDic['myPrefix_' + key] = value del varDic[key] <snip>
DaveA -- http://mail.python.org/mailman/listinfo/python-list