Re:[Python-Dev] collections module (correction)
10 Jan
2004
10 Jan
'04
5:55 p.m.
And a correction to the size method I suggested for the queue object: def size(self): return sum(map(len, self.superlist)) The previous one was giving wrong results when get was called N times and N % maximum_sublist_size != 0. I believe this should be implemented in C, otherwise the overhead would be too much for queues that never grew.
7410
Age (days ago)
7410
Last active (days ago)
0 comments
1 participants
participants (1)
-
Christos Georgiou