On 20 Mar, 00:16, John Machin <sjmac... at lexicon.net> wrote: > What don't you understand about the comments in the first two > screenfuls of Objects/setobject.c? I had not looked at it, but now I have. Is seems Hettinger is the author :) Ok, so sets are implemented as hash tables. Then I agree, use Raymond Hettinger's solution.