
Nov. 28, 2003
7:54 p.m.
On Thu, Nov 27, 2003 at 01:49:40PM -0800, Guido van Rossum wrote:
Thanks! Here's a class version of the same, which strikes me as slightly easier to understand (though probably slower due to all the instance variable access). It may serve as an easier model for a C implementation. I decided not to deal explicitly with out-of-order access; if the caller doesn't play by the rules, some of their groups will be split and jumbled, but each split group will still have matching keys.
Here's yet another implementation for itertoolsmodule.c. (see attachment) I wrote it after the shower (really!) :) Regards, Hye-Shik