99msgstr ""
1010"Project-Id-Version : Python 3.14\n "
1111"Report-Msgid-Bugs-To : \n "
12- "POT-Creation-Date : 2026-06-03 00:49 +0000\n "
12+ "POT-Creation-Date : 2026-06-06 00:39 +0000\n "
1313"PO-Revision-Date : 2024-01-22 21:42+0800\n "
1414"Last-Translator : Matt Wang <mattwang44@gmail.com>\n "
1515"Language-Team : Chinese - TAIWAN (https://github.com/python/python-docs-zh- "
@@ -1984,7 +1984,7 @@ msgstr ""
19841984#: ../../library/collections.rst:1229
19851985msgid ""
19861986"from collections import OrderedDict\n"
1987- "from time import time \n"
1987+ "from time import monotonic \n"
19881988"\n"
19891989"class TimeBoundedLRU:\n"
19901990" \" LRU Cache that invalidates and refreshes old entries.\" \n"
@@ -1999,10 +1999,10 @@ msgid ""
19991999" if args in self.cache:\n"
20002000" self.cache.move_to_end(args)\n"
20012001" timestamp, result = self.cache[args]\n"
2002- " if time () - timestamp <= self.maxage:\n"
2002+ " if monotonic () - timestamp <= self.maxage:\n"
20032003" return result\n"
20042004" result = self.func(*args)\n"
2005- " self.cache[args] = time (), result\n"
2005+ " self.cache[args] = monotonic (), result\n"
20062006" if len(self.cache) > self.maxsize:\n"
20072007" self.cache.popitem(last=False)\n"
20082008" return result"
0 commit comments