Can I do this faster?

Horst Gassner horst at proceryon.at
Wed Aug 9 02:35:58 EDT 2000


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



More information about the Python-list mailing list