Frozenset Methods

frozenset.issuperset()

Check that every member from the other iterable occurs in the receiver. Equality is allowed; every set is a superset of the empty set. Accepts an iterable, including a generator or dictionary (whose iteration supplies keys). Returns a Boolean without mutating either built-in set operand. Hashing or iteration errors may propagate; do not depend on consuming every element of an iterator or on a specific evaluation strategy. The subset/superset operators use set operands and express a partial ordering, not a numeric or lexicographic sort.

Formal Syntax & Structure

python syntaxpython
items.issuperset(other, /)

Parameters & Attributes

NameTypeDescription
otherIterable[Hashable]Iterable of candidate elements.

Return Value

bool

True when the stated relation holds, otherwise False.

Working Example

Example Snippetpython
available = frozenset({"read", "write"})print(available.issuperset(["read", "write"]))print(available.issuperset(["export"]))
Python Reference