Message186646
| Author |
lemburg |
| Recipients |
amaury.forgeotdarc, lemburg, pitrou |
| Date |
2013年04月12日.15:41:58 |
| SpamBayes Score |
-1.0 |
| Marked as misclassified |
Yes |
| Message-id |
<51682B3C.8090905@egenix.com> |
| In-reply-to |
<1365780729.09.0.80451603478.issue17703@psf.upfronthosting.co.za> |
| Content |
On 12.04.2013 17:32, Antoine Pitrou wrote:
>
> Judging by the fact that the Py_AtExit funcs are called at the very end of Py_Finalize (after absolutely everything has been cleaned up), I think you shouldn't use any Python facilities at this point.
As mentioned earlier: this is the only way to cleanup extension modules
in Python 2.x and the trash can patch broke this.
> By the way, why do you try to clean up the dictionary at this point? Any non-trivial deallocation
code (e.g. __del__ method) will fail running.
The dictionaries just contain simple Python types that don't
have __del__ methods, so deallocation works fine and it prevents
memory leaks when embedding the Python interpreter and restarting
it several times. |
|