[Python-Dev] RE: [Python-checkins] python/dist/src/Objectstypeobject.c, 2.244, 2.245
gminick
gminick at hacker.pl
Thu Oct 9 15:42:30 EDT 2003
More information about the Python-Dev mailing list
Thu Oct 9 15:42:30 EDT 2003
- Previous message: [Python-Dev] RE: [Python-checkins] python/dist/src/Objectstypeobject.c, 2.244, 2.245
- Next message: [Python-Dev] python-dev Summary for 2003-09-16 through 2003-09-30 [draft]
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
On Thu, Oct 09, 2003 at 11:16:42AM -0400, Raymond Hettinger wrote: [...] > One issue with the way you wrote it is that both PyInt_FromLong() and > Py_ObjectIsTrue() create new Python objects but only one of them is > returned. The other needs to have its reference count lowered by one so > that obj.__contains__() won't leak. While everything else was clear before, the text above is a nice reminder, some kind of warning, how to code better. Thank you. -- [ Wojtek Walczak - gminick (at) underground.org.pl ] [ <http://gminick.linuxsecurity.pl/> ] [ "...rozmaite zwroty, matowe od patyny dawnosci." ]
- Previous message: [Python-Dev] RE: [Python-checkins] python/dist/src/Objectstypeobject.c, 2.244, 2.245
- Next message: [Python-Dev] python-dev Summary for 2003-09-16 through 2003-09-30 [draft]
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
More information about the Python-Dev mailing list