A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://mail.python.org/pipermail/python-dev/2007-September/074402.html below:

[Python-Dev] frozenset C API?

[Python-Dev] frozenset C API? [Python-Dev] frozenset C API?"Martin v. Löwis" martin at v.loewis.de
Tue Sep 4 21:02:06 CEST 2007
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 PyFrozenSet_New(), then decref the list object.
> 
> Is that correct?

Almost. It doesn't have to be a list - any iterable object would do.

Regards,
Martin
More information about the Python-Dev mailing list

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4