28 Dec
2005
28 Dec
'05
6:22 p.m.
Hello, If I do something like this: s = set() for i in xrange(1000000): s.add(i) while s: s.pop() gc.collect() the memory consumption of the process remains the same even after the pops. I checked the code (that's where I started from, really), and there's nothing in set.pop or set.remove that resizes the table. And it turns out that it's the same with dicts. Should something be done about it? Noam