wiki:python/Types/set/isdisjoint

intersection, isdisjoint, issubset, union, update


Python Doc


Prüfen, ob einer von mehreren Schlüsseln in Dictionary
Re: Könnte man hier das operator-Modul einsetzen?


Check if one of several keys exist in dictionary

>>> d = {'one': 1, 'two': 2, 'three': 3}
>>> not set(('four', 'one', 'zero')).isdisjoint(d)
True}}}
Last modified 5 years ago Last modified on Apr 17, 2014, 1:21:32 PM