Re: [Python-Dev] Does eval() leak?

2006-02-20 Thread John Marshall
Martin v. Löwis wrote: > John Marshall wrote: > >>Should I expect the virtual memory allocation >>to go up if I do the following? > > > python-dev is a list for discussing development of Python, > not the development with Python. Please post this question > to [EMAIL PROTECTED] > > For python-d

Re: [Python-Dev] Does eval() leak?

2006-02-20 Thread Guido van Rossum
On 2/16/06, John Marshall <[EMAIL PROTECTED]> wrote: > Hi, > > Should I expect the virtual memory allocation > to go up if I do the following? > - > raw = open("data").read() > while True: > d = eval(raw) > - > > I would have expected the memory allocated to the > object referenced

[Python-Dev] Does eval() leak?

2006-02-17 Thread John Marshall
Hi, Should I expect the virtual memory allocation to go up if I do the following? - raw = open("data").read() while True: d = eval(raw) - I would have expected the memory allocated to the object referenced by d to be deallocated, garbage collected, and reallocated for the new eval

Re: [Python-Dev] Does eval() leak?

2006-02-17 Thread Martin v. Löwis
John Marshall wrote: > Should I expect the virtual memory allocation > to go up if I do the following? python-dev is a list for discussing development of Python, not the development with Python. Please post this question to [EMAIL PROTECTED] For python-dev, a message explaining where the memory l