Computer Science question (python list is slow with my cruddy algorithm )

Jay O'Connor joconnor at
Fri Aug 23 02:40:52 CEST 2002

In article <20020823.073546.1784639529.1531 at>, "Jay O'Connor"
<joconnor at> wrote:

sorry....typed without thinking..

> location = (x,y)
> featuresInLocation = []
> for each in worldmap.keys():
> 	if location in worldmap (each):

should be

	if location in worldmap[each]

Take care,

Jay O'Connor
joconnor at

More information about the Python-list mailing list