Hello! The following code is executed very often in my program and I would be happy if someone could help me to speed this up. def __GetRowID (s, row): for key in s.__rowDict.keys(): if s.__rowDict[key]['data'] == row: return key Thanx in advance Horst