3 Feb
2000
3 Feb
'00
7:19 p.m.
Guido van Rossum writes:
But they won't have to -- all the other pointers in the as_sequence struct can be NULL. (This used to be not the case, but I've finally given in and added NULL tests everywhere -- it was a recurring complaint from extension writers.)
Good enough; sounds like the thing to do is to declare a set to be an sequence that supports sq_contains, sets a flag in tp_flag, and doesn't support the irrelevant slots in the sequence structure. -Fred -- Fred L. Drake, Jr. <fdrake at acm.org> Corporation for National Research Initiatives