This commit is contained in:
Shay Palachy
2020-03-20 15:17:05 +02:00
parent 63d3b6d6d7
commit 4adf5518c5
+1 -1
View File
@@ -133,7 +133,7 @@ Further function calls made while the calculation is being performed will not tr
Working with unhashable arguments
---------------------------------
As mentioned above, The positional and keyword arguments to the wrapped function must be hashable (i.e. Python's immutable built-in objects, not mutable containers). To get around this limitation the ``hash_params`` parameter of the ``cachier`` decorator can be provided with a callable that gets the args and kwargs from the decorated function and returns a hash key for them.
As mentioned above, the positional and keyword arguments to the wrapped function must be hashable (i.e. Python's immutable built-in objects, not mutable containers). To get around this limitation the ``hash_params`` parameter of the ``cachier`` decorator can be provided with a callable that gets the args and kwargs from the decorated function and returns a hash key for them.
.. code-block:: python