[issue21537] functools.lru_cache does not cache exceptions

2019-10-31 Thread Stephen Paul Chappell
Change by Stephen Paul Chappell : -- nosy: -Zero ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue21537] functools.lru_cache does not cache exceptions

2017-09-14 Thread Sviatoslav Sydorenko
Sviatoslav Sydorenko added the comment: Hi, I've got similar need (caching exceptions). My use case is syscall, which is not going to result in something different regardless of the number of times it's called. But I'd like to be able to have exception already raised for me by lru_cache, so

[issue21537] functools.lru_cache does not cache exceptions

2014-05-19 Thread Stephen Paul Chappell
New submission from Stephen Paul Chappell: While examining the implementation for lru_cache, it came to my attention that the wrappers ignore the possibility of exceptions. Is this on purpose? If the cache is designed to reduce the overhead of running certain functions, it seems like

[issue21537] functools.lru_cache does not cache exceptions

2014-05-19 Thread Raymond Hettinger
Raymond Hettinger added the comment: Is this on purpose? The short answer is yes. It is a can of worms and there isn't much of a payoff. -- nosy: +rhettinger resolution: - not a bug status: open - closed ___ Python tracker rep...@bugs.python.org