[Python-Dev] frozenset C API? (original) (raw)
"Martin v. Löwis" martin at v.loewis.de
Tue Sep 4 21:02:06 CEST 2007
- Previous message: [Python-Dev] frozenset C API?
- Next message: [Python-Dev] frozenset C API?
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Bill Janssen schrieb:
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 PyFrozenSetNew(), then decref the list object.
Is that correct?
Almost. It doesn't have to be a list - any iterable object would do.
Regards, Martin
- Previous message: [Python-Dev] frozenset C API?
- Next message: [Python-Dev] frozenset C API?
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]