frozenset question

Raymond Hettinger python at rcn.com
Wed Jul 6 10:21:49 EDT 2005


Will McGugan wrote:
> Are there any benefits in using a frozenset over a set, other than it
> being immutable?

No.  The underlying implementation is identical with set.  The only
difference is the addition of a hash method and absence of mutating
methods.  Everything else is the same.


Raymond




More information about the Python-list mailing list