[Python-Dev] Functions that steal references (Re: [pygame] [patch] minor memory leaks...) (original) (raw)
Christian Heimes lists at cheimes.de
Wed Jun 17 01:24:27 CEST 2009
- Previous message: [Python-Dev] Functions that steal references (Re: [pygame] [patch] minor memory leaks...)
- Next message: [Python-Dev] Functions that steal references (Re: [pygame] [patch] minor memory leaks...)
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Benjamin Peterson schrieb:
2009/6/16 Greg Ewing <greg.ewing at canterbury.ac.nz>:
Lenard Lindstrom wrote:
I assumed that since PyModuleAddObject 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 PyModuleAddObject an oddity? IIRC, It's an oddity.
But it is a convenient oddity nonetheless.
Christian
- Previous message: [Python-Dev] Functions that steal references (Re: [pygame] [patch] minor memory leaks...)
- Next message: [Python-Dev] Functions that steal references (Re: [pygame] [patch] minor memory leaks...)
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]