code
coder@ubuntu:~$ source activate py37
(py37) coder@ubuntu:~$ ipython
Python 3.7.3 (default, Mar 27 2019, 22:11:17)
Type 'copyright', 'credits' or 'license' for more information
IPython 7.5.0 -- An enhanced Interactive Python. Type '?' for help.
In [1]: hash(list())
---------------------------------------------------------------------------
TypeError Traceback (most recent call last)
<ipython-input-1-3e2eb619e4e4> in <module>
----> 1 hash(list())
TypeError: unhashable type: 'list'
In [2]: hash(dict())
---------------------------------------------------------------------------
TypeError Traceback (most recent call last)
<ipython-input-2-7762fff637c6> in <module>
----> 1 hash(dict())
TypeError: unhashable type: 'dict'
In [3]: hash(set())
---------------------------------------------------------------------------
TypeError Traceback (most recent call last)
<ipython-input-3-2699417ebeac> in <module>
----> 1 hash(set())
TypeError: unhashable type: 'set'
In [4]: exit
(py37) coder@ubuntu:~$ conda deactivate
coder@ubuntu:~$
source_code
def hash(*args, **kwargs): # real signature unknown
"""
Return the hash value for the given object.
Two objects that compare equal must also have the same hash value, but the
reverse is not necessarily true.
"""
pass
Similar Posts:
- PaddlePaddle Error: ‘map’ object is not subscriptable
- [Solved] pip install ipython error: ‘ImportError: No module named shutil_get_terminal_size’
- How to Solve Python TypeError: ‘list’ object is not callable
- NameError: name ‘true’ is not defined when opening ipynb file in jupyter notebook
- Bug—-QXcbConnection: Could not connect to display Aborted (core dumped)
- AttributeError: ‘tuple’ object has no attribute ‘extend’
- [Solved] An error occurred when paddlepaddle iterated data: typeerror: ‘function’ object is not iterative
- Python Importerror: DLL load failed: unable to find the specified module
- Python Exception: TypeError: write() argument must be str, not list
- [Solved] Python Error: TypeError: ‘dict_keys’ object does not support indexing