cachier
cachier copied to clipboard
Identical keys for different signatures when using tuple positional arguments
To create the key for a cache entry, the current implementation uses the following expression:
key = args + tuple(sorted(kwds.items()))
For a function with signature spam(*args, **kwargs), this will generate the same key for spam(1, a=2) and spam(1, ("a", 2)), which may be undesirable.
@benzlock could you please rebase over the latest master and open a new PR for your fix? :)
See #81 : https://github.com/shaypal5/cachier/pull/81
Could easily be added to the current code base, I think.
Solved by PR #104