Daniel Urban <urban.dani...@gmail.com> added the comment:

The attached patch adds the isdisjoint method to dict_keys and dict_items.
Pseudocode for the method:

def isdisjoint(self, other):
    if self is other:
        if len(self) == 0:
            return True
        else:
            return False
    else:
        for item in other:
            if item in self:
                return False
        return True

----------
keywords: +patch
nosy: +durban
Added file: http://bugs.python.org/file18158/issue9212.diff

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

Reply via email to