Skip to content

issues Search Results · repo:lonelyenvoy/python-memoization language:Python

Filter by

24 results
 (69 ms)

24 results

inlonelyenvoy/python-memoization (press backspace or delete to remove)

def wrapper(*args, **kwargs): The actual wrapper nonlocal hits, misses key = make_key(args, kwargs) value = cache.get(key, sentinel) if value is not sentinel ...
  • eyalk11
  • 1
  • Opened 
    on Aug 30, 2024
  • #28

I am getting this deprecation warning: DEPRECATION: distro-info 0.23ubuntu1 has a non-standard version number. pip 23.3 will enforce this behaviour change. A possible replacement is to upgrade to a newer ...
  • maulberto3
  • 1
  • Opened 
    on Sep 1, 2023
  • #27

Is there the opportunity to bypass some specific function arguments when caching? An example of desired functionality is fulfilled by joblib
  • cerlymarco
  • Opened 
    on Jul 18, 2023
  • #26

Looking at the profiler output, it seems like cached decorator is not releasing memory: 32 2578.6 MiB 0.0 MiB 1 c = MemoizeClass() 33 2829.4 MiB 0.0 MiB 1001 ...
  • eldernewborn
  • 1
  • Opened 
    on Sep 15, 2022
  • #25

All things works fine when I used cache wrapper in the examples. But I met a big problem if I want to cache a inner function when design a lazy query tools. For example: from memoization import cached ...
  • luckystar1992
  • Opened 
    on Jun 14, 2022
  • #23

Hi folks, I really love your module and we even use it at work quit a lot :D I wanted to contribute and add support for async methods but got stuck since I cannot really access the cache store behind the ...
  • TheClockTwister
  • Opened 
    on Apr 26, 2022
  • #22

In the numpy-universe stochastic functions s seed can be either fixed by setting it to an int, or deterministic behavior can be switched off by setting the seed to None. My workaround to ensure the correct ...
  • spisakt
  • Opened 
    on Apr 30, 2021
  • #21

Overview When determining how large the cache using max_size is it may be useful to treat some items as larger than other to provide a better proxy for their memory footprint. For example, I have a function ...
  • FreakTheMighty
  • Opened 
    on Feb 24, 2021
  • #20

Hello I have function which can return results or timeout, simplified example is below: @cache() def longjob(args): try: data = getdata(args) return data except timeout: return ...
  • rmrmg
  • 1
  • Opened 
    on Feb 12, 2021
  • #19

Example source: from memoization import cached import inspect class A: @cached(ttl=1) def b(self, name: str) - int: return len(name) * 2 def a(self) - bool: return self.b( ...
bug
priority-0-high
  • bmc-msft
  • 3
  • Opened 
    on Dec 31, 2020
  • #18
Issue origami icon

Learn how you can use GitHub Issues to plan and track your work.

Save views for sprints, backlogs, teams, or releases. Rank, sort, and filter issues to suit the occasion. The possibilities are endless.Learn more about GitHub Issues
ProTip! 
Press the
/
key to activate the search input again and adjust your query.
Issue origami icon

Learn how you can use GitHub Issues to plan and track your work.

Save views for sprints, backlogs, teams, or releases. Rank, sort, and filter issues to suit the occasion. The possibilities are endless.Learn more about GitHub Issues
ProTip! 
Press the
/
key to activate the search input again and adjust your query.
Issue search results · GitHub