[Python-Dev] Proposal to eliminate PySet_Fini

Fredrik Lundh fredrik at pythonware.com
Wed Jun 28 04:14:21 CEST 2006


Alexander Belopolsky wrote:
> Setobject code allocates several internal objects on the heap that are
> cleaned up by the PySet_Fini function. This is a fine design choice,
> but it often makes debugging applications with embedded python more
> difficult.

given that CPython has about a dozen Fini functions, what exactly is it 
that makes PySet_Fini so problematic ?
$ more Python/pythonrun.c
	...
	PyMethod_Fini();
	PyFrame_Fini();
	PyCFunction_Fini();
	PyTuple_Fini();
	PyList_Fini();
	PySet_Fini();
	PyString_Fini();
	PyInt_Fini();
	PyFloat_Fini();
	_PyUnicode_Fini();
	...
</F>


More information about the Python-Dev mailing list

AltStyle によって変換されたページ (->オリジナル) /