Re: [Python-Dev] Discussion related to memory leaks requested

2016-01-14 Thread Matthew Paulson
Hi All: I've created a simple program to make sure I wasn't lying to you all ;-> Here it is: for (ii = 0; ii < 100; ii++) { Py_Initialize(); if ((code = Py_CompileString(p, "foo", Py_file_input)) == NULL) printf("PyRun_SimpleString() failed\n");

Re: [Python-Dev] Discussion related to memory leaks requested

2016-01-13 Thread Matthew Paulson
t few days and if it also demonstrates the problem, then I'll submit it here. Thanks for your time and help. Best, Matt On 1/13/2016 6:45 PM, Andrew Barnert wrote: On Jan 13, 2016, at 14:49, Matthew Paulson <mailto:paul...@busiq.com>> wrote: Hi Victor: No, I'm using th

Re: [Python-Dev] Discussion related to memory leaks requested

2016-01-13 Thread Matthew Paulson
tinner wrote: Hi, 2016-01-13 20:32 GMT+01:00 Matthew Paulson : I've spent some time performing memory leak analysis while using Python in an embedded configuration. Hum, did you try tracemalloc? https://docs.python.org/dev/library/tracemalloc.html https://pytracemalloc.readthedocs.org/ Is

[Python-Dev] Discussion related to memory leaks requested

2016-01-13 Thread Matthew Paulson
Hi: I've spent some time performing memory leak analysis while using Python in an embedded configuration. The pattern is: Py_Initialize(); ... run empty python source file ... Py_Finalize(); I've identified several suspect areas including dictionary maitenace in import.c:~ 414