> I'd create a new alltribes dict on every generation. > It'd be faster > than what you're doing now, be more deterministic, > and a lot easier > to get right. > > I wouldn't classify this as a memory bug either. It > doesn't really > have anything to do with memory. > > -bob >
I'd agree. I've been in similar situations before. What's really wanted(once the problem is discovered) are these two properties: 1. references to list locations, rather than specific items 2. can "step backwards" when size/ordering changes I tend to use a while loop and counter for those purposes. __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com
