Short answer: because they are mutable containers.
If a dict was hashed, its hash would change as you changed its contents.
More Related Contents:
- Creating multiple python dictionaries from a file
- Is there any pythonic way to combine two dicts (adding values for keys that appear in both)?
- Why can’t I use a list as a dict key in python?
- How can I get list of values from dict?
- Creating a list of dictionaries results in a list of copies of the same dictionary
- heapq with custom compare predicate
- How to convert list of key-value tuples into dictionary?
- how to iterate through dictionary in a dictionary in django template?
- How to check if one dictionary is a subset of another larger dictionary?
- Subclassing Python dictionary to override __setitem__
- Combining Dictionaries Of Lists In Python
- Set attributes from dictionary in python
- switching keys and values in a dictionary in python [duplicate]
- OrderedDict vs defaultdict vs dict [closed]
- Most Pythonic Way to Build Dictionary From Single List
- How can I update an attribute created by a base class’ mutable default argument, without modifying that argument? [duplicate]
- How to pass dictionary items as function arguments in python? [duplicate]
- Is there a better way to compare dictionary values
- scipy.io.loadmat nested structures (i.e. dictionaries)
- How to sort dictionary by key in numerical order Python
- Initialize List to a variable in a Dictionary inside a loop
- How to get count dict of items but maintain the order in which they appear?
- How can I get a random key-value pair from a dictionary?
- enumerate() for dictionary in Python
- Accepting a dictionary as an argument with argparse and python [duplicate]
- Disabling sorting mechanism in pprint output
- Getting the difference (delta) between two lists of dictionaries
- How to raise error if duplicates keys in dictionary
- TypedDict when keys have invalid names
- How to create a nested dictionary from a list in Python?