Path: csiph.com!usenet.pasdenom.info!nntpfeed.proxad.net!proxad.net!feeder1-2.proxad.net!news.tele.dk!news.tele.dk!small.news.tele.dk!newsgate.cistron.nl!newsgate.news.xs4all.nl!post.news.xs4all.nl!not-for-mail Return-Path: X-Original-To: python-list@python.org Delivered-To: python-list@mail.python.org X-Spam-Status: OK 0.049 X-Spam-Evidence: '*H*': 0.90; '*S*': 0.00; 'explicitly': 0.05; 'subject:Python': 0.06; 'garbage': 0.16; 'subject: \n ': 0.16; 'sat,': 0.16; 'wrote:': 0.18; "hasn't": 0.19; '(by': 0.24; 'header :In-Reply-To:1': 0.27; 'tim': 0.29; 'message-id:@mail.gmail.com': 0.30; 'chase': 0.31; 'disabled': 0.31; 'run': 0.32; 'but': 0.35; 'received:google.com': 0.35; 'module.': 0.36; 'subject:data': 0.36; 'subject:?': 0.36; 'to:addr:python-list': 0.38; 'pm,': 0.38; 'to:addr:python.org': 0.39; 'subject:Can': 0.60; 'such': 0.63; 'subject:this': 0.83; '2015': 0.84 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=OpK80/CU2BtSOlfd3NAFAJAUd+9PrsWGCdpoIqR3E2M=; b=cXmdYli1RIeHihLn58AdaP2+XQKEZewVsernJ+enhBIwPiF4q8g0T77mJTpU26EH1v JK8v/Y/Q4FhrtVL2zaOBpXomaYyydjIFFKNufKBb/8mheG6Z6J0xUqG2fGylBTnO9XeB smq6RlDaGR8B/F7ZhCn/uBdxaN+xT9NilvFWs0kmPWyjl1e0mE7gdc2ZIxfnae8ZIMda XQp/fEdnvMBaQtHLfBA6Rqg1PU0KcVTmMWLMxj2bPHvjdZ0QQRx/7zCC1iMCePjvoJU9 9UYNFEqfAsLIslxvfMe9uc8K9d/oAZmv/365OXNJe6xzzKwEHXM0lpqS7Gpv9CIO2K2F 4V8A== X-Received: by 10.107.136.89 with SMTP id k86mr19877005iod.63.1430627420825; Sat, 02 May 2015 21:30:20 -0700 (PDT) MIME-Version: 1.0 In-Reply-To: <20150502205740.53527192@bigbox.christie.dr> References: <387ac520-9da3-411a-a3b8-b326e1e8a2c0@googlegroups.com> <87a8xmn0yp.fsf@Equus.decebal.nl> <20150502205740.53527192@bigbox.christie.dr> From: Ian Kelly Date: Sat, 2 May 2015 22:29:40 -0600 Subject: Re: Inner workings of this Python feature: Can a Python data structure reference itself? To: Python Content-Type: text/plain; charset=UTF-8 X-BeenThere: python-list@python.org X-Mailman-Version: 2.1.20+ Precedence: list List-Id: General discussion list for the Python programming language List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Newsgroups: comp.lang.python Message-ID: Lines: 8 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1430627424 news.xs4all.nl 2841 [2001:888:2000:d::a6]:36033 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:89826 On Sat, May 2, 2015 at 7:57 PM, Tim Chase wrote: > So it sounds like you have to request such a mark-and-sweep from > the gc module. You *can* request it. But as long as it hasn't been explicitly disabled (by calling gc.disable()), the mark-and-sweep garbage collection will also run automatically -- just not necessarily immediately.