Tres Seaver <tsea...@agendaless.com> added the comment:

WeakKeyDictionary's __contains__:

    def __contains__(self, key):
        try:
            wr = ref(key)
        except TypeError:
            return 0
        return wr in self.data

----------

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue10360>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to