[Python-Dev] frozenset C API? (original) (raw)
Bill Janssen janssen at parc.com
Tue Sep 4 20:33:50 CEST 2007
- Previous message: [Python-Dev] Porting information
- Next message: [Python-Dev] frozenset C API?
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
I'm looking at building a "frozenset" instance as a return value from a C function, and the C API seems ridiculously clumsy. Maybe I'm misunderstanding it. Apparently, I need to create a list object, then pass that to PyFrozenSet_New(), then decref the list object.
Is that correct?
What I'd like is something more like
PyFrozenSet_NEW(int) => PySetObject *
PyFrozenSet_SET_ITEM(s, i, v)Any idea why these aren't part of the API?
Bill
- Previous message: [Python-Dev] Porting information
- Next message: [Python-Dev] frozenset C API?
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]