A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://mail.python.org/pipermail/python-dev/2009-June/090098.html below:

[Python-Dev] Functions that steal references (Re: [pygame] [patch] minor memory leaks...)

[Python-Dev] Functions that steal references (Re: [pygame] [patch] minor memory leaks...) [Python-Dev] Functions that steal references (Re: [pygame] [patch] minor memory leaks...)Christian Heimes lists at cheimes.de
Wed Jun 17 01:24:27 CEST 2009
Benjamin Peterson schrieb:
> 2009/6/16 Greg Ewing <greg.ewing at canterbury.ac.nz>:
>> Lenard Lindstrom wrote:
>>
>>> I assumed that since PyModule_AddObject is documented as stealing a
>>> reference, it always stole a reference. But in reality it only does so
>>> conditionally, when it succeeds.
>> As an aside, is this a general feature of functions
>> that steal references, or is PyModule_AddObject an
>> oddity?
> 
> IIRC, It's an oddity.

But it is a convenient oddity nonetheless.

Christian

More information about the Python-Dev mailing list

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4