Path: csiph.com!usenet.pasdenom.info!news.albasani.net!newsfeed.freenet.ag!news2.euro.net!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.015 X-Spam-Evidence: '*H*': 0.97; '*S*': 0.00; 'subsequent': 0.04; 'purpose.': 0.07; 'python': 0.09; 'subject:None': 0.09; 'subject:python': 0.11; 'result.': 0.15; 'from:addr:rosuav': 0.16; 'from:name:chris angelico': 0.16; 'illustration': 0.16; 'wrote:': 0.17; 'thu,': 0.17; 'memory': 0.18; 'written': 0.20; 'subject:release': 0.22; 'example': 0.23; 'seems': 0.23; 'header :In-Reply-To:1': 0.25; 'message-id:@mail.gmail.com': 0.27; 'piece': 0.29; 'thinks': 0.29; 'that.': 0.30; 'achieving': 0.33; 'allocated': 0.33; 'to:addr:python-list': 0.33; 'received:google.com': 0.34; 'thanks': 0.34; 'pm,': 0.35; 'should': 0.36; 'too': 0.36; 'subject:: ': 0.38; 'to:addr:python.org': 0.39; 'subject:, ': 0.61; 'back': 0.62; 'bothered': 0.65; '2013': 0.84; 'dies.': 0.84; 'subject:Set': 0.91; 'subject:del': 0.91 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:x-received:in-reply-to:references:date:message-id :subject:from:to:content-type; bh=Rulnma1xIxcXzIn59wYNHVRctecOf1pzNjnsxtv9Tes=; b=Ss+zkQKLutEtPReLbQ3x3x+jRW/xrF3bmvyHOPstzX/iMXTWhc7RuDgDjf2xrXd2Bi /9BdZFJQXoVY00Km+C/l/Fbh4gE4QrMMdQeupoMypaSOaNhtE7h37eO4WP62cfHvje5V 4CljMt6kONWE9IobSdQPvajtE6dNrvPYv7ZO/c7b3qg42vFriNuurpMY9JNj5HdrTTSJ 6KUuf+8oMNrkxdeC7+U6Atv6TuSfOhdaa1OTH4ZHa0ExCg9l/Qhgfc0M8HmBqD2BrXLt PsftzXenWcIwYLlASk1lMFY+HZYBsVHjCN0e9cjWt7JbienfUEVHAWs++C5XFAyWu57x hMgw== MIME-Version: 1.0 X-Received: by 10.52.22.194 with SMTP id g2mr11073947vdf.91.1362640778937; Wed, 06 Mar 2013 23:19:38 -0800 (PST) In-Reply-To: <78E1273CA6E76A43BB8830A194FF709B0B14D68C@039-SN2MPN1-013.039d.mgd.msft.net> References: <390f0dc5-5750-4849-9433-a19d90cc8566@googlegroups.com> <87zjyhhret.fsf@nautilus.nautilus> <5137d292$0$30001$c3e8da3$5496439d@news.astraweb.com> <78E1273CA6E76A43BB8830A194FF709B0B14D68C@039-SN2MPN1-013.039d.mgd.msft.net> Date: Thu, 7 Mar 2013 18:19:38 +1100 Subject: Re: Set x to to None and del x doesn't release memory in python 2.7.1 (HPUX 11.23, ia64) From: Chris Angelico To: python-list@python.org Content-Type: text/plain; charset=ISO-8859-1 X-BeenThere: python-list@python.org X-Mailman-Version: 2.1.15 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: 1362640787 news.xs4all.nl 6944 [2001:888:2000:d::a6]:33557 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:40713 On Thu, Mar 7, 2013 at 5:33 PM, Wong Wah Meng-R32813 wrote: > [] The example is written for illustration purpose. Thanks for pointing out a better way of achieving the same result. Yes it seems so that the OS thinks the piece allocated to Python should not be taken back unless the process dies. :( Don't be too bothered by that. That memory will be reused by Python for subsequent allocations. ChrisA