michilu / python-functools32

Backport of the functools module from Python 3.2.3 for use with Python 2.7 and PyPy. Includes `lru_cache` (Least-recently-used cache decorator)
http://pypi.python.org/pypi/functools32
Other
52 stars 14 forks source link

if args contains a list, the decorator will raise TypeError: unhashable type: 'list' #8

Open super1-chen opened 6 years ago

super1-chen commented 6 years ago

https://github.com/MiCHiLU/python-functools32/blob/ad90fa86e2f4f494a3aedb0571274f3bbc6d7ab5/functools32/functools32.py#L337

list is unhashable and couldn't be key of python dictionary, when userfunction asgs contains a list, the decorator will raise TypeError, please know that, thanks.