[Python-Dev] frozenset C API? (original) (raw)

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:

PyDictNEW(int) => PySetObject * PyDictADD(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