Message276913
| Author |
rhettinger |
| Recipients |
rhettinger, serhiy.storchaka |
| Date |
2016年09月18日.21:07:47 |
| SpamBayes Score |
-1.0 |
| Marked as misclassified |
Yes |
| Message-id |
<1474232868.04.0.779898325864.issue28193@psf.upfronthosting.co.za> |
| In-reply-to |
| Content |
Yes, I saw that. If a function could raise a NoCache exception, re._compile() could take advantage of it. But I don't feel good about going down that path (adding coupling between the caching decorator and the cached function). It would be better to keep the lru_cache API simple. I already made the mistake of expanding the API for typed=True just to accommodate a single use case (re.compile). |
|
History
|
|---|
| Date |
User |
Action |
Args |
| 2016年09月18日 21:07:48 | rhettinger | set | recipients:
+ rhettinger, serhiy.storchaka |
| 2016年09月18日 21:07:48 | rhettinger | set | messageid: <1474232868.04.0.779898325864.issue28193@psf.upfronthosting.co.za> |
| 2016年09月18日 21:07:48 | rhettinger | link | issue28193 messages |
| 2016年09月18日 21:07:48 | rhettinger | create |
|