Results of 1 - 10 of about 95 for cached (0.011 sec.)
- functools --- 高階関数と呼び出し可能オブジェクトの操作 — Python 3.14.8 ドキュメ... 12836
- ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » The Python standard library » 関数型プログラミング用モジュール » functools --- 高階関数と呼び出し可能オブジェクトの操作 テーマ 自動 ライト ダーク | functools ---
...uments. Because it never needs to evict 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 ) # no previously cached result, makes 1...1 recursive calls 3628800 >>> factorial ( 5 ) # no new calls, just returns the cached result 120 >>> factorial ( 12 ) # two new recursive calls, factorial(10) is cached 479001600 The cache is threadsafe so th...tion to be called more than once if another thread makes an additional call before the initial call has been completed and cached. Added in version 3.9. @ functools. cached_property ( func ) ¶ Transform a method of a class into a property whose value i... - https://man.mtool.work/python/3.14/library/functools.html
- functools --- 高階関数と呼び出し可能オブジェクトの操作 — Python 3.14.8 ドキュメ... 12836
- ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » The Python standard library » 関数型プログラミング用モジュール » functools --- 高階関数と呼び出し可能オブジェクトの操作 テーマ 自動 ライト ダーク | functools ---
...uments. Because it never needs to evict 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 ) # no previously cached result, makes 1...1 recursive calls 3628800 >>> factorial ( 5 ) # no new calls, just returns the cached result 120 >>> factorial ( 12 ) # two new recursive calls, factorial(10) is cached 479001600 The cache is threadsafe so th...tion to be called more than once if another thread makes an additional call before the initial call has been completed and cached. Added in version 3.9. @ functools. cached_property ( func ) ¶ Transform a method of a class into a property whose value i... - https://man.mtool.work/python/3.14/library/functools.html
- runpy --- Python モジュールの位置特定と実行 — Python 3.14.8 ドキュメント 11533
- ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » The Python standard library » モジュールのインポート » runpy --- Python モジュールの位置特定と実行 テーマ 自動 ライト ダーク | runpy --- Python モジュールの位置特
...obals , those definitions are overridden by run_module() . The special global variables __name__ , __spec__ , __file__ , __cached__ , __loader__ and __package__ are set in the globals dictionary before the module code is executed. (Note that this is a...imported module (that is, __spec__.name will always be mod_name or mod_name + '.__main__' , never run_name ). __file__ , __cached__ , __loader__ and __package__ are set as normal based on the module spec. 引数 alter_sys が与えられて True に評価されるな...す。 バージョン 3.1 で変更: Added ability to execute packages by looking for a __main__ submodule. バージョン 3.2 で変更: __cached__ グローバル変数が追加されました ( PEP 3147 を参照)。 バージョン 3.4 で変更: Updated to take advantage of the module spec... - https://man.mtool.work/python/3.14/library/runpy.html
- runpy --- Python モジュールの位置特定と実行 — Python 3.14.8 ドキュメント 11533
- ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » The Python standard library » モジュールのインポート » runpy --- Python モジュールの位置特定と実行 テーマ 自動 ライト ダーク | runpy --- Python モジュールの位置特
...obals , those definitions are overridden by run_module() . The special global variables __name__ , __spec__ , __file__ , __cached__ , __loader__ and __package__ are set in the globals dictionary before the module code is executed. (Note that this is a...imported module (that is, __spec__.name will always be mod_name or mod_name + '.__main__' , never run_name ). __file__ , __cached__ , __loader__ and __package__ are set as normal based on the module spec. 引数 alter_sys が与えられて True に評価されるな...す。 バージョン 3.1 で変更: Added ability to execute packages by looking for a __main__ submodule. バージョン 3.2 で変更: __cached__ グローバル変数が追加されました ( PEP 3147 を参照)。 バージョン 3.4 で変更: Updated to take advantage of the module spec... - https://man.mtool.work/python/3.14/library/runpy.html
- Pending removal in Python 3.15 — Python 3.14.8 ドキュメント 8926
- ナビゲーション 索引 モジュール | Python » 3.14.8 Documentation » Pending removal in Python 3.15 テーマ 自動 ライト ダーク | Pending removal in Python 3.15 ¶ The import system: Setting __cached__ on a module while failing to set __spec__.cached
...hed is deprecated. In Python 3.15, __cached__ will cease to be set or take into consideration by the import system or standard library. ( gh-97879 ) Setting __package...iahao Li in gh-125746 .) 関連キーワード Python deprecated since module TypedDict set gh Use arguments syntax import system cached failing take function instead argument typing Setting This page Report a bug Improve this page Show source Show translatio... - https://man.mtool.work/python/3.14/deprecations/pending-removal-in-3.15.html
- Pending removal in Python 3.15 — Python 3.14.8 ドキュメント 8926
- ナビゲーション 索引 モジュール | Python » 3.14.8 Documentation » Pending removal in Python 3.15 テーマ 自動 ライト ダーク | Pending removal in Python 3.15 ¶ The import system: Setting __cached__ on a module while failing to set __spec__.cached
...hed is deprecated. In Python 3.15, __cached__ will cease to be set or take into consideration by the import system or standard library. ( gh-97879 ) Setting __package...(Contributed by Jiahao Li in gh-125746 .) 関連キーワード deprecated since module TypedDict arguments syntax import system cached failing take instead argument typing Setting while spec cease consideration standard library package ctypes undocumented h... - https://man.mtool.work/python/3.14/deprecations/pending-removal-in-3.15.html
- モジュールのインポート — Python 3.14.8 ドキュメント 8017
- ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » Python/C API reference manual » ユーティリティ » モジュールのインポート テーマ 自動 ライト ダーク | モジュールのインポート ¶ PyObject * PyImport_ImportModule ( c
...ourceFileLoader otherwise. The module's __file__ attribute will be set to the code object's co_filename . If applicable, __cached__ will also be set. この関数は、すでにインポートされているモジュールの場合には再ロードを行います。意図的にモジュールの再ロ...ExecCodeModuleEx() と PyImport_ExecCodeModuleWithPathnames() も参照してください。 バージョン 3.12 で変更: The setting of __cached__ and __loader__ is deprecated. See ModuleSpec for alternatives. PyObject * PyImport_ExecCodeModuleEx ( const char * name...name ) ¶ 戻り値: 新しい参照。 次に属します: Stable ABI (バージョン 3.7 より). Like PyImport_ExecCodeModuleEx() , but the __cached__ attribute of the module object is set to cpathname if it is non- NULL . Of the three functions, this is the preferred on... - https://man.mtool.work/python/3.14/c-api/import.html
- モジュールのインポート — Python 3.14.8 ドキュメント 7622
- ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » Python/C API reference manual » ユーティリティ » モジュールのインポート テーマ 自動 ライト ダーク | モジュールのインポート ¶ PyObject * PyImport_ImportModule ( c
...ourceFileLoader otherwise. The module's __file__ attribute will be set to the code object's co_filename . If applicable, __cached__ will also be set. この関数は、すでにインポートされているモジュールの場合には再ロードを行います。意図的にモジュールの再ロ...ExecCodeModuleEx() と PyImport_ExecCodeModuleWithPathnames() も参照してください。 バージョン 3.12 で変更: The setting of __cached__ and __loader__ is deprecated. See ModuleSpec for alternatives. PyObject * PyImport_ExecCodeModuleEx ( const char * name...name ) ¶ 戻り値: 新しい参照。 次に属します: Stable ABI (バージョン 3.7 より). Like PyImport_ExecCodeModuleEx() , but the __cached__ attribute of the module object is set to cpathname if it is non- NULL . Of the three functions, this is the preferred on... - https://man.mtool.work/python/3.14/c-api/import.html
- What's New In Python 3.12 — Python 3.14.8 ドキュメント 7214
- ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » What's New in Python » What's New In Python 3.12 テーマ 自動 ライト ダーク | What's New In Python 3.12 ¶ 編集者 : Adam Turner この記事では Python 3.11 と比較した
...m __spec__.parent (previously it was ImportWarning ). (Contributed by Brett Cannon in gh-65961 .) Setting __package__ or __cached__ on a module is deprecated, and will cease to be set or taken into consideration by the import system in Python 3.14. (Co...public API. (Contributed by Gregory P. Smith in gh-88168 .) Pending removal in Python 3.15 ¶ The import system: Setting __cached__ on a module while failing to set __spec__.cached is deprecated. In Python 3.15, __cached__ will cease to be set or take...filename , loader = loader ) module = importlib . util . module_from_spec ( spec ) # The module is always executed and not cached in sys.modules. # Uncomment the following line to cache the module. # sys.modules[module.__name__] = module loader . exec_... - https://man.mtool.work/python/3.14/whatsnew/3.12.html
- 3. データモデル — Python 3.14.8 ドキュメント 7214
- ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » Python 言語リファレンス » 3. データモデル テーマ 自動 ライト ダーク | 3. データモデル ¶ 3.1. オブジェクト、値、および型 ¶ Objects are Python's abstraction for da
...ommended that you use module.__spec__.submodule_search_locations instead of module.__path__ . module. __file__ ¶ module. __cached__ ¶ __file__ and __cached__ are both optional attributes that may or may not be set. Both attributes should be a str when...leave it unset if it has no semantic meaning (for example, a module loaded from a database). If __file__ is set then the __cached__ attribute might also be set, which is the path to any compiled version of the code (for example, a byte-compiled file)....exist to set this attribute; the path can simply point to where the compiled file would exist (see PEP 3147 ). Note that __cached__ may be set even if __file__ is not set. However, that scenario is quite atypical. Ultimately, the loader is what makes u... - https://man.mtool.work/python/3.14/reference/datamodel.html