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/2006-June/066785.html below:

[Python-Dev] Proposal to eliminate PySet_Fini

[Python-Dev] Proposal to eliminate PySet_Fini [Python-Dev] Proposal to eliminate PySet_FiniAlexander Belopolsky alexander.belopolsky at gmail.com
Thu Jun 29 18:47:30 CEST 2006
Fredrik Lundh <fredrik <at> pythonware.com> writes:


> given that CPython has about a dozen Fini functions, what exactly is it 
> that makes PySet_Fini so problematic ?
> 

I have not been bitten by the other _Fini yet. ;-)

I was bitten by PySet_Fini when I tried to replace the "interned" dict with a
set. Since setobject is finalized before stringobject, interpretor crashed when
cleaning "interned".

I feel that set is a more basic object than dict, but dictobject module is never
finalized (is this a bug or a feature?), so dict api functions are always safe.
For example, I can use dict API in atexit callbacks, but not set API.

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