methodtools icon indicating copy to clipboard operation
methodtools copied to clipboard

Expand functools features(lru_cache) to class - methods, classmethods, staticmethods and even for (unofficial) hybrid methods.

Results 13 methodtools issues
Sort by recently updated
recently updated
newest added

`lru_cache` introduces a correctness problem for methods or properties whose output depend on attributes stored in `self`. Of course you can manually call `clear_cache`, but 1. this is a leaky...

Anyway to get this to work with a pandas DataFrame?

I detected that is impossible to pickle an instance of a class having a method decorated with `lru_cache` **after** the latter method is called. If the method is never called,...

Does this library support async methods?

When I decorate a method with `methodtools.lru_cache` and then build sphinx documentation, the docstring shows as `` rather than the documentation for the method in its docstring. I think this...

Hi! Thanks for this lib! @lru_cache behaviour is tricky when it comes to classes and it has bitten me a few times more than I'd like to admit. This lib...

Hi @youknowone NeuroDebian maintainers are ready to introduce your packages to Debian, and I want to make sure the build sources are verifiable over time. It seems, however, that Github...

which corresponds to functools.cache

Analogous to → https://github.com/youknowone/wirerope/issues/20 ```console [deco]/tmp/methodtools ❱ diff -qc gh_methodtools-0.4.7/ pp_methodtools-0.4.7/ Only in gh_methodtools-0.4.7/: docs Only in gh_methodtools-0.4.7/: .github Only in gh_methodtools-0.4.7/: .gitignore Only in pp_methodtools-0.4.7/: methodtools.egg-info Only in pp_methodtools-0.4.7/:...

good first issue