Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #67956 > unrolled thread

Re: script uses up all memory

Started byChris Angelico <rosuav@gmail.com>
First post2014-03-07 09:12 +1100
Last post2014-03-07 09:12 +1100
Articles 1 — 1 participant

Back to article view | Back to comp.lang.python

This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by below is the oldest one visible, not the original post.


Contents

  Re: script uses up all memory Chris Angelico <rosuav@gmail.com> - 2014-03-07 09:12 +1100

#67956 — Re: script uses up all memory

FromChris Angelico <rosuav@gmail.com>
Date2014-03-07 09:12 +1100
SubjectRe: script uses up all memory
Message-ID<mailman.7877.1394143977.18130.python-list@python.org>
On Fri, Mar 7, 2014 at 9:07 AM, Larry Martell <larry.martell@gmail.com> wrote:
> Apparently the object returned by that call is immutable as if I look
> at id(self.tools) each pass through the loop, it is different. Is
> there some way I can recover that memory?

Not sure what mutability has to do with that. The changing id() simply
means you're getting back a new object every time. Normally, as soon
as your rebind self.tools to the new object, the old object will be
disposed of - unless it has refloops, which is what I mentioned in the
previous post, or has some other external reference.

ChrisA

[toc] | [standalone]


Back to top | Article view | comp.lang.python


csiph-web