[Python-Dev] frozenset C API?

Bill Janssen janssen at parc.com
Tue Sep 4 22:11:11 CEST 2007


> But your point is still well taken.  How about this one, though:
> 
>      PyDict_NEW(int) => PySetObject *
>      PyDict_ADD(s, value)
> 
> ADD would just stick value in the next empty slot (and steal its
> reference).

Sorry, I meant to say

     PyFrozenSet_NEW(int) => PySetObject *
     PyFrozenSet_ADD(s, value)

Bill


More information about the Python-Dev mailing list