python2.6
idx = map(operator.methodcaller("key"), entries).index(entry.key())
python2.5
idx = [i for i, e in enumerate(entries) if e.key() == entry.key()][0]
Recommended Posts