pydoc > builtins.frozenset

๐Ÿ“˜ NAME

builtins.frozenset = class frozenset(object)

frozenset() -> empty frozenset object
frozenset(iterable) -> frozenset object

Build an immutable unordered collection of unique elements.

๐Ÿš€ Quick Reference

Use CaseCommandDescription
๐Ÿงช Create empty frozensetfrozenset()Creates an empty immutable set
๐Ÿ“ฆ Create frozenset from iterablefrozenset([1,2,3])Creates immutable set from list
๐Ÿ” Check membershipx in fsTest if element is in frozenset
๐Ÿ“ Get sizelen(fs)Number of elements
๐Ÿ”— Unionfs1 | fs2All elements in either set
๐Ÿ”— Intersectionfs1 & fs2Elements in both sets
๐Ÿ”— Differencefs1 - fs2Elements in fs1 but not fs2
๐Ÿ”— Symmetric differencefs1 ^ fs2Elements in exactly one set
๐Ÿ”— Subset checkfs1 <= fs2Is fs1 subset of fs2?
๐Ÿ”— Superset checkfs1 >= fs2Is fs1 superset of fs2?
๐Ÿ”— Disjoint checkfs1.isdisjoint(fs2)Do sets have no common elements?

๐Ÿ”ง Methods

๐Ÿ”ง Instance Methods

๐Ÿ›๏ธ Class Methods

๐Ÿ›๏ธ Class methods defined here

โš™๏ธ Static Methods

โš™๏ธ Static methods defined here

builtins.frozenset
๐Ÿ“˜ NAME ๐Ÿš€ Quick Reference ๐Ÿ”ง Methods
๐Ÿ”ง Instance Methods
๐Ÿ›๏ธ Class Methods
๐Ÿ›๏ธ Class methods defined here
โš™๏ธ Static Methods
โš™๏ธ Static methods defined here

Generated by phpman v4.10.0-7-g98e9fd5 · Markdown · JSON · MCP Author: Che Dong Under GNU General Public License
2026-09-01 20:03 @216.73.216.239
CrawledBy Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)
Valid XHTML 1.0 Transitional!Valid CSS!

^_top_^