Frozenset Methods
frozenset.issubset()
Check that every receiver member occurs in the other iterable. Equality is allowed; this is not a strict subset test. The empty set is a subset of every 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.issubset(other, /)Parameters & Attributes
| Name | Type | Description |
|---|---|---|
| other | Iterable[Hashable] | Iterable of candidate elements. |
Return Value
bool
True when the stated relation holds, otherwise False.
Working Example
Example Snippetpython
required = frozenset({"read"})print(required.issubset(["read", "write"]))print(required.issubset([]))