commit | 61146790992e0a00b76a6bf6ecc9e53289a1ecd7 | [log] [tgz] |
---|---|---|
author | Raymond Hettinger <python@rcn.com> | Thu Aug 19 21:32:06 2004 +0000 |
committer | Raymond Hettinger <python@rcn.com> | Thu Aug 19 21:32:06 2004 +0000 |
tree | 20852192a2cc52157dd0ea92f3507b958fa6a9cd | |
parent | 3a3817f506801e4a1e62d8cd52e1c8aa0feb2993 [diff] |
SF bug #1012315: weakref.WeakValueDictionary should override .has_key() * Check the found object for a None value during a contains/has_key lookup. Perhaps it will help the OP who is likely suffering from an occassional GC or threading object deletion after self.data is checked. * Complete the previous patch by removing the unnecessary indirection for weak dict iterators. Makes the code cleaner and more readable.