Memory leak: assigning function object to instance variable

Alexander Williams thantos at chancel.org
Mon Jun 5 18:06:45 EDT 2000


On Mon, 5 Jun 2000 20:55:59 +0100, John Parkey
<jparkey at nospamrapidbs.com> wrote:

>I have registered this bug, with code fragment below, but wondered if

This isn't, technically, a bug.  You create a cyclic reference to self
inside the instances, so the reference counting mechanism for
releasing memory can't let it go.  Standard, expected behaviour for
refcounting garbage collection.

-- 
Alexander Williams (thantos at gw.total-web.net)           | In the End,
  "Join the secret struggle for the soul of the world." | Oblivion
  Nobilis, a new Kind of RPG                            | Always
  http://www.chancel.org                                | Wins



More information about the Python-list mailing list