[issue9828] Repeated Py_Initialize and Py_Finalize usage brings fatal error?

Antoine Pitrou report at bugs.python.org
Sun Sep 12 15:50:54 CEST 2010


Antoine Pitrou <pitrou at free.fr> added the comment:

It should be noted that repeatedly calling Py_Initialize / Py_Finalize leaks a lot (even without the "import _ctypes"):

--- 0 ---
[34543 refs]
--- 1 ---
[37540 refs]
--- 2 ---
[40504 refs]
--- 3 ---
[43468 refs]
--- 4 ---
[46432 refs]
--- 5 ---
[49396 refs]
--- 6 ---
[52360 refs]
--- 7 ---
[55324 refs]
--- 8 ---
[58288 refs]
--- 9 ---
[61252 refs]
--- 10 ---
[64216 refs]

And it also translates into memory consumption...

----------

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue9828>
_______________________________________


More information about the Python-bugs-list mailing list