Follow

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use
Contact

What's the difference between frozensets and sets?

What’s the difference between fronzensets/sets and what are their advantages/disadvantages?

>Solution :

MEDevel.com: Open-source for Healthcare and Education

Collecting and validating open-source software for healthcare, education, enterprise, development, medical imaging, medical records, and digital pathology.

Visit Medevel

Frozenset is immutable. Once created you cannot add/remove elements from it. This means that they can be used as keys in dictionaries etc. and in any other place where you would like an object to be hashable. A common practise is to be working with a set while constructing it, and if at any point you know it will no longer change – freeze it for a guarantee of it really not happening.

Add a comment

Leave a Reply

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use

Discover more from Dev solutions

Subscribe now to keep reading and get access to the full archive.

Continue reading