Results of 1 - 10 of about 134 for cache (0.069 sec.)
- functools --- 高階関数と呼び出し可能オブジェクトの操作 — Python 3.14.8 ドキュメ... 12035
- ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » The Python standard library » 関数型プログラミング用モジュール » functools --- 高階関数と呼び出し可能オブジェクトの操作 テーマ 自動 ライト ダーク | functools ---
...treated as a function for the purposes of this module. The functools module defines the following functions: @ functools. cache ( user_function ) ¶ 簡単で軽量な無制限の関数キャッシュです。 "メモ化 (memoize)" とも呼ばれることがあります。 Returns the s...ame as lru_cache(maxsize=None) , creating a thin wrapper around a dictionary lookup for the function arguments. Because it never needs to e...vict old values, this is smaller and faster than @lru_cache with a size limit. 例えば: @cache def factorial ( n ): return n * factorial ( n - 1 ) if n else 1 >>> factorial ( 10 ) # n... - https://man.mtool.work/python/3.14/library/functools.html
- functools --- 高階関数と呼び出し可能オブジェクトの操作 — Python 3.14.8 ドキュメ... 12035
- ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » The Python standard library » 関数型プログラミング用モジュール » functools --- 高階関数と呼び出し可能オブジェクトの操作 テーマ 自動 ライト ダーク | functools ---
...treated as a function for the purposes of this module. The functools module defines the following functions: @ functools. cache ( user_function ) ¶ 簡単で軽量な無制限の関数キャッシュです。 "メモ化 (memoize)" とも呼ばれることがあります。 Returns the s...ame as lru_cache(maxsize=None) , creating a thin wrapper around a dictionary lookup for the function arguments. Because it never needs to e...vict old values, this is smaller and faster than @lru_cache with a size limit. 例えば: @cache def factorial ( n ): return n * factorial ( n - 1 ) if n else 1 >>> factorial ( 10 ) # n... - https://man.mtool.work/python/3.14/library/functools.html
- zoneinfo --- IANA タイムゾーンのサポート — Python 3.14.8 ドキュメント 10407
- ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » The Python standard library » データ型 » zoneinfo --- IANA タイムゾーンのサポート テーマ 自動 ライト ダーク | zoneinfo --- IANA タイムゾーンのサポート ¶ Added in
...のサブクラス。Calls to the primary constructor will always return objects that compare identically; put another way, barring cache invalidation via ZoneInfo.clear_cache() , for all values of key , the following assertion will always be true: a = ZoneInf...pickling を参照)。 ValueError is raised if the data read from file_obj is not a valid TZif file. classmethod ZoneInfo. no_cache ( key ) ¶ An alternate constructor that bypasses the constructor's cache. It is identical to the primary constructor, but...ost likely to be useful for testing or demonstration purposes, but it can also be used to create a system with a different cache invalidation strategy. Objects created via this constructor will also bypass the cache of a deserializing process when unp... - https://man.mtool.work/python/3.14/library/zoneinfo.html
- zoneinfo --- IANA タイムゾーンのサポート — Python 3.14.8 ドキュメント 10407
- ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » The Python standard library » データ型 » zoneinfo --- IANA タイムゾーンのサポート テーマ 自動 ライト ダーク | zoneinfo --- IANA タイムゾーンのサポート ¶ Added in
...のサブクラス。Calls to the primary constructor will always return objects that compare identically; put another way, barring cache invalidation via ZoneInfo.clear_cache() , for all values of key , the following assertion will always be true: a = ZoneInf...pickling を参照)。 ValueError is raised if the data read from file_obj is not a valid TZif file. classmethod ZoneInfo. no_cache ( key ) ¶ An alternate constructor that bypasses the constructor's cache. It is identical to the primary constructor, but...ost likely to be useful for testing or demonstration purposes, but it can also be used to create a system with a different cache invalidation strategy. Objects created via this constructor will also bypass the cache of a deserializing process when unp... - https://man.mtool.work/python/3.14/library/zoneinfo.html
- 変更履歴 — Python 3.14.8 ドキュメント 9671
- ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » What's New in Python » 変更履歴 テーマ 自動 ライト ダーク | 変更履歴 ¶ Python next ¶ Release date: XXXX-XX-XX セキュリティ ¶ gh-157265 : In tarfile , when extrac
...155752 : Fix a crash when a types.GenericAlias argument gains a __typing_subst__ hook after the alias parameters have been cached. gh-155504 : Fix a crash when thread state creation fails before the thread state is fully initialized. gh-155526 : Fix s...rs or incorrect line numbers in free-threaded builds when a thread-local bytecode array grows or gains entries after being cached. gh-157672 : Fix tkinter on macOS: creating a Tk instance no longer replaces the Python handlers of SIGINT, SIGHUP and SI..._support no longer fails to import when ctypes.util.find_library() cannot resolve the ObjC runtime through the dyld shared cache, as is the case on iOS 13. The runtime is now loaded by name, which dyld resolves against the cache directly. gh-156101 :... - https://man.mtool.work/python/3.14/whatsnew/changelog.html
- collections --- コンテナデータ型 — Python 3.14.8 ドキュメント 8477
- ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » The Python standard library » データ型 » collections --- コンテナデータ型 テーマ 自動 ライト ダーク | collections --- コンテナデータ型 ¶ ソースコード: Lib/collec
...( key , value ) self . move_to_end ( key ) An OrderedDict would also be useful for implementing variants of @functools.lru_cache : from collections import OrderedDict from time import monotonic class TimeBoundedLRU : "LRU Cache that invalidates and re...freshes old entries." def __init__ ( self , func , maxsize = 128 , maxage = 30 ): self . cache = OrderedDict () # { args : (timestamp, result)} self . func = func self . maxsize = maxsize self . maxage = maxage def __...call__ ( self , * args ): if args in self . cache : self . cache . move_to_end ( args ) timestamp , result = self . cache [ args ] if monotonic () - timestamp <= self . max... - https://man.mtool.work/python/3.14/library/collections.html
- collections --- コンテナデータ型 — Python 3.14.8 ドキュメント 8477
- ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » The Python standard library » データ型 » collections --- コンテナデータ型 テーマ 自動 ライト ダーク | collections --- コンテナデータ型 ¶ ソースコード: Lib/collec
...( key , value ) self . move_to_end ( key ) An OrderedDict would also be useful for implementing variants of @functools.lru_cache : from collections import OrderedDict from time import monotonic class TimeBoundedLRU : "LRU Cache that invalidates and re...freshes old entries." def __init__ ( self , func , maxsize = 128 , maxage = 30 ): self . cache = OrderedDict () # { args : (timestamp, result)} self . func = func self . maxsize = maxsize self . maxage = maxage def __...call__ ( self , * args ): if args in self . cache : self . cache . move_to_end ( args ) timestamp , result = self . cache [ args ] if monotonic () - timestamp <= self . max... - https://man.mtool.work/python/3.14/library/collections.html
- dis --- Python バイトコードの逆アセンブラー — Python 3.14.8 ドキュメント 8333
- ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » The Python standard library » Python言語サービス » dis --- Python バイトコードの逆アセンブラー テーマ 自動 ライト ダーク | dis --- Python バイトコードの逆アセンブ
...uction offset rather than the byte offset. バージョン 3.11 で変更: Some instructions are accompanied by one or more inline cache entries, which take the form of CACHE instructions. These instructions are hidden by default, but can be shown by passing...show_caches=True to any dis utility. Furthermore, the interpreter now adapts the bytecode to specialize it for different runtime cond...is the offset of the target instruction relative to the instruction that appears immediately after the jump instruction's CACHE entries. As a consequence, the presence of the CACHE instructions is transparent for forward jumps but needs to be taken i... - https://man.mtool.work/python/3.14/library/dis.html
- dis --- Python バイトコードの逆アセンブラー — Python 3.14.8 ドキュメント 8333
- ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » The Python standard library » Python言語サービス » dis --- Python バイトコードの逆アセンブラー テーマ 自動 ライト ダーク | dis --- Python バイトコードの逆アセンブ
...uction offset rather than the byte offset. バージョン 3.11 で変更: Some instructions are accompanied by one or more inline cache entries, which take the form of CACHE instructions. These instructions are hidden by default, but can be shown by passing...show_caches=True to any dis utility. Furthermore, the interpreter now adapts the bytecode to specialize it for different runtime cond...is the offset of the target instruction relative to the instruction that appears immediately after the jump instruction's CACHE entries. As a consequence, the presence of the CACHE instructions is transparent for forward jumps but needs to be taken i... - https://man.mtool.work/python/3.14/library/dis.html
- 5. インポートシステム — Python 3.14.8 ドキュメント 8031
- ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » Python 言語リファレンス » 5. インポートシステム テーマ 自動 ライト ダーク | 5. インポートシステム ¶ ある 1 つの module にある Python コードから他のモジュールを イ
...longer called during the resolution of a module's repr. 5.4.6. キャッシュされたバイトコードの無効化 ¶ Before Python loads cached bytecode from a .pyc file, it checks whether the cache is up-to-date with the source .py file. By default, Python does th...is by storing the source's last-modified timestamp and size in the cache file when writing it. At runtime, the import system then validates the cache file by checking the stored metadata in the c...ache file against the source's metadata. Python also supports "hash-based" cache files, which store a hash of the source file's contents rather than its metadata. There are two variants of hash-based .py... - https://man.mtool.work/python/3.14/reference/import.html