[Python-Dev] builtin filter function (original) (raw)
Reinhold Birkenfeld reinhold-birkenfeld-nospam at wolke7.net
Wed Jul 20 00:40:39 CEST 2005
- Previous message: [Python-Dev] builtin filter function
- Next message: [Python-Dev] builtin filter function
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Reinhold Birkenfeld wrote:
Ruslan Spivak wrote:
Hello.
I was reading source code for bltinmodule.c and found probably erroneus stuff in filter function. I'm newbie to python inners and don't know if attached code is worth for a patch submission. I would appreciate if someone could take a look at it and if it's ok then i'll make submission, otherwise just drop it. TIA This is indeed a bug in the function, and could have caused memory leaks because of not releasing the preallocated tuple.
Correction: should have been "not releasing the iterator". (However, the bug would have been triggered only if the tuple could not be allocated, which is a very unlikely case).
Reinhols
-- Mail address is perfectly valid!
- Previous message: [Python-Dev] builtin filter function
- Next message: [Python-Dev] builtin filter function
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]