Is pickle buggy?
Brian Kelley
kelley at bioreason.com
Fri Jul 14 07:07:52 EDT 2000
True enough but do you expect
>>> "AAAAAA"
to be garbage collected or not? eval('"AAAAA"') is doing exactly that. That
is the behavior we are seeing so I don't think your example is valid in this
case. For intern("AAAAA") it is because that is what intern does. But intern
wasn't being called directly.
Moshe Zadka wrote:
> On Fri, 14 Jul 2000, Brian Kelley wrote:
>
> > I don't get that behavior on windowsNT. If I directly
> > intern(uniquestring()) then memory gets eaten extremely fast, not on the
> > order of hours but on the order of minutes.
> >
> > I'll let eval(`uniquestring()`) run for a while and see what happens.
>
> This program also eats memory quickly
>
> def do(l=[]):
> l.append(1)
>
> while 1:
> do()
>
> --
> Moshe Zadka <moshez at math.huji.ac.il>
> There is no GOD but Python, and HTTP is its prophet.
> http://advogato.org/person/moshez
--
Brian Kelley Bioreason, Inc
505 995-8188 ext 207 150 Washington St Suite 303
kelley at bioreason.com Santa Fe, NM, 87501
More information about the Python-list
mailing list