This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author webknjaz
Recipients Zero, rhettinger, webknjaz
Date 2017-09-14.09:26:05
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1505381165.45.0.455752266758.issue21537@psf.upfronthosting.co.za>
In-reply-to
Content
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 that I won't poke kernel with no need.

I'd suggest adding `cache_exceptions=False` key to the decorator to let user control whether it's worth enabling. This might be useful in stdlib.
History
Date User Action Args
2017-09-14 09:26:05webknjazsetrecipients: + webknjaz, rhettinger, Zero
2017-09-14 09:26:05webknjazsetmessageid: <1505381165.45.0.455752266758.issue21537@psf.upfronthosting.co.za>
2017-09-14 09:26:05webknjazlinkissue21537 messages
2017-09-14 09:26:05webknjazcreate