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

Jay O'Connor joconnor at cybermesa.com
Thu Aug 22 20:40:52 EDT 2002


In article <20020823.073546.1784639529.1531 at cybermesa.com>, "Jay O'Connor"
<joconnor at cybermesa.com> 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 cybermesa.com
http://www.r4h.org/r4hsoftware



More information about the Python-list mailing list