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.
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