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


Groups > comp.lang.python > #77769

Re: recursive closure

Path csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!eu.feeder.erje.net!newsfeed.xs4all.nl!newsfeed4a.news.xs4all.nl!xs4all!post.news.xs4all.nl!not-for-mail
Return-Path <ian.g.kelly@gmail.com>
X-Original-To python-list@python.org
Delivered-To python-list@mail.python.org
X-Spam-Status OK 0.079
X-Spam-Evidence '*H*': 0.84; '*S*': 0.00; '10:00': 0.16; 'implies': 0.16; 'unreachable': 0.16; 'wrote:': 0.18; 'wed,': 0.18; 'header :In-Reply-To:1': 0.27; 'message-id:@mail.gmail.com': 0.30; 'sep': 0.31; 'url:python': 0.33; 'objects': 0.35; 'received:google.com': 0.35; 'url:org': 0.36; 'url:library': 0.38; 'to:addr:python-list': 0.38; 'pm,': 0.38; 'rather': 0.38; 'to:addr:python.org': 0.39; 'url:3': 0.61
DKIM-Signature v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :content-type; bh=X3n3PHsY9rMytKWeEQfbFrNarnbcHulpvxs7hHivGh4=; b=smQcAbLt4zk4Lb5DlDnM7KHqJZrZPzAC1hZ+NxOfwueGuyGWHCtLY0Wn130cviQ/IS 3jJPSo/5dp68CKo9PJ/XEt3jvNhipfGDHyg2nSubAA7/3WCozLiOp1Qnohilz1pvR2lh N80Y/fyVKSWo2gvlE5fZbhSuRtRLg06rzwXarF+RYDF0G6KuFMBqsdhGaeyEhBevS12u e777xTzRnw7hG//GlE4WzWjHA8llVblPzqjAYwhm2TNndzl37tii1ySMYOLGpJhyLonv zro2pD9fC8n481wYRUM0/ZfVr5HQxh7SQ3Ytm93Xsf7d5gVfNWydRRDqpf7Eb6JjJjlg dlPw==
X-Received by 10.68.195.131 with SMTP id ie3mr10014605pbc.145.1410417509735; Wed, 10 Sep 2014 23:38:29 -0700 (PDT)
MIME-Version 1.0
In-Reply-To <b5f756.6ec2.14862de35d0.Coremail.jazeltq@163.com>
References <b5f756.6ec2.14862de35d0.Coremail.jazeltq@163.com>
From Ian Kelly <ian.g.kelly@gmail.com>
Date Thu, 11 Sep 2014 00:37:49 -0600
Subject Re: recursive closure
To Python <python-list@python.org>
Content-Type text/plain; charset=UTF-8
X-BeenThere python-list@python.org
X-Mailman-Version 2.1.15
Precedence list
List-Id General discussion list for the Python programming language <python-list.python.org>
List-Unsubscribe <https://mail.python.org/mailman/options/python-list>, <mailto:python-list-request@python.org?subject=unsubscribe>
List-Archive <http://mail.python.org/pipermail/python-list/>
List-Post <mailto:python-list@python.org>
List-Help <mailto:python-list-request@python.org?subject=help>
List-Subscribe <https://mail.python.org/mailman/listinfo/python-list>, <mailto:python-list-request@python.org?subject=subscribe>
Newsgroups comp.lang.python
Message-ID <mailman.13926.1410417518.18130.python-list@python.org> (permalink)
Lines 10
NNTP-Posting-Host 2001:888:2000:d::a6
X-Trace 1410417518 news.xs4all.nl 2939 [2001:888:2000:d::a6]:36104
X-Complaints-To abuse@xs4all.nl
Xref csiph.com comp.lang.python:77769

Show key headers only | View raw


On Wed, Sep 10, 2014 at 10:00 PM, Li Tianqing <jazeltq@163.com> wrote:
> gc.set_debug(gc.DEBUG_LEAK)

The DEBUG_LEAK flag implies the DEBUG_SAVEALL flag, which causes all
unreachable objects to be appended to gc.garbage rather than freed.

https://docs.python.org/3/library/gc.html#gc.DEBUG_SAVEALL

Try not setting the flag, and I think you will find that gc.garbage no
longer accumulates.

Back to comp.lang.python | Previous | Next | Find similar | Unroll thread


Thread

Re: recursive closure Ian Kelly <ian.g.kelly@gmail.com> - 2014-09-11 00:37 -0600

csiph-web