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." ]
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