We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Running this:
import qcore counter = 0 class X: @qcore.caching.cached_per_instance() def cached(self, **kwargs): global counter counter += 1 return counter x = X() print(x.cached(a=1)) print(x.cached(a=2))
Prints 1, 1 (we'd expect 1, 2).
This is because the get_args_tuple() function (https://github.com/quora/qcore/blob/master/qcore/caching.py#L321) ignores **kwargs that are not recognized.
I see a few other problems:
The text was updated successfully, but these errors were encountered:
Possible solutions:
tuple(kwargs.items())
**kwargs
Sorry, something went wrong.
caching: fix cached_per_instance
daff55d
quora#83
No branches or pull requests
Running this:
Prints 1, 1 (we'd expect 1, 2).
This is because the get_args_tuple() function (https://github.com/quora/qcore/blob/master/qcore/caching.py#L321) ignores **kwargs that are not recognized.
I see a few other problems:
The text was updated successfully, but these errors were encountered: