Path: csiph.com!x330-a1.tempe.blueboxinc.net!usenet.pasdenom.info!news.albasani.net!weretis.net!feeder4.news.weretis.net!news.on-luebeck.de!newsfeed.ision.net!newsfeed2.easynews.net!ision!newsfeed.arcor.de!newsspool3.arcor-online.net!news.arcor.de.POSTED!not-for-mail From: Thomas Rachel Newsgroups: comp.lang.python Subject: Re: Py_INCREF() incomprehension Date: Tue, 26 Apr 2011 14:23:53 +0200 Organization: A newly installed InterNetNews server Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; de; rv:1.9.2.15) Gecko/20110303 Lightning/1.0b2 Thunderbird/3.1.9 Hamster/2.1.0.11 In-Reply-To: Lines: 10 NNTP-Posting-Date: 26 Apr 2011 14:30:02 CEST NNTP-Posting-Host: cb06b718.newsspool2.arcor-online.net X-Trace: DXC=nOUkjW4ZXW^5TOT9_N5iWXdPK8FCa6^2FWROLF_]FfFg8_O>8gh9PSc Especially look at the concepts called "borrowed reference" vs. "owned > reference". http://docs.python.org/extending/extending.html#reference-counting-in-python will be quite helpful. Thomas