per page, with , order by , clip by
Results of 1 - 10 of about 84 for cleanup (0.040 sec.)
tempfile --- 一時ファイルやディレクトリの作成 — Python 3.14.8 ドキュメント 12817
ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » The Python standard library » ファイルとディレクトリへのアクセス » tempfile --- 一時ファイルやディレクトリの作成 テーマ 自動 ライト ダーク | tempfile --- 一時ファ ... nary or text mode was specified). class tempfile. TemporaryDirectory ( suffix = None , prefix = None , dir = None , ignore_cleanup_errors = False , * , delete = True ) ¶ このクラスは mkdtemp() と同じルールを使用して安全に一時ディレクトリを作成します。返 ... ェクトが コンテキストマネージャ として使用された場合、 name は with 文内の as 節のターゲットがあればそれに割り当てられます。 cleanup ( ) ¶ The directory can be explicitly cleaned up by calling the cleanup() method. If ignore_cleanup_errors is true, any un ... handled exceptions during explicit or implicit cleanup (such as a PermissionError removing open files on Windows) will be ignored, and the remaining removable items deleted on a ...
https://man.mtool.work/python/3.14/library/tempfile.html
tempfile --- 一時ファイルやディレクトリの作成 — Python 3.14.8 ドキュメント 12817
ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » The Python standard library » ファイルとディレクトリへのアクセス » tempfile --- 一時ファイルやディレクトリの作成 テーマ 自動 ライト ダーク | tempfile --- 一時ファ ... nary or text mode was specified). class tempfile. TemporaryDirectory ( suffix = None , prefix = None , dir = None , ignore_cleanup_errors = False , * , delete = True ) ¶ このクラスは mkdtemp() と同じルールを使用して安全に一時ディレクトリを作成します。返 ... ェクトが コンテキストマネージャ として使用された場合、 name は with 文内の as 節のターゲットがあればそれに割り当てられます。 cleanup ( ) ¶ The directory can be explicitly cleaned up by calling the cleanup() method. If ignore_cleanup_errors is true, any un ... handled exceptions during explicit or implicit cleanup (such as a PermissionError removing open files on Windows) will be ignored, and the remaining removable items deleted on a ...
https://man.mtool.work/python/3.14/library/tempfile.html
contextlib --- with 文コンテキスト用ユーティリティ — Python 3.14.8 ドキュメント 10676
ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » The Python standard library » Python ランタイムサービス » contextlib --- with 文コンテキスト用ユーティリティ テーマ 自動 ライト ダーク | contextlib --- with 文コ ... s None : def check_resource_ok ( resource ): return True self . check_resource_ok = check_resource_ok @contextmanager def _cleanup_on_error ( self ): with ExitStack () as stack : stack . push ( self ) yield # The validation check passed and didn't raise ... pass it # back to our caller stack . pop_all () def __enter__ ( self ): resource = self . acquire_resource () with self . _cleanup_on_error (): if not self . check_resource_ok ( resource ): msg = "Failed validation for {!r} " raise RuntimeError ( msg . ... ることがあるかもしれません。一番シンプルな (単に except 句を使うだけでは処理できない) ケースでは次のようなコードになります: cleanup_needed = True try : result = perform_operation () if result : cleanup_needed = False finally : if cleanup_needed : cleanup ...
https://man.mtool.work/python/3.14/library/contextlib.html
contextlib --- with 文コンテキスト用ユーティリティ — Python 3.14.8 ドキュメント 10676
ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » The Python standard library » Python ランタイムサービス » contextlib --- with 文コンテキスト用ユーティリティ テーマ 自動 ライト ダーク | contextlib --- with 文コ ... s None : def check_resource_ok ( resource ): return True self . check_resource_ok = check_resource_ok @contextmanager def _cleanup_on_error ( self ): with ExitStack () as stack : stack . push ( self ) yield # The validation check passed and didn't raise ... pass it # back to our caller stack . pop_all () def __enter__ ( self ): resource = self . acquire_resource () with self . _cleanup_on_error (): if not self . check_resource_ok ( resource ): msg = "Failed validation for {!r} " raise RuntimeError ( msg . ... ることがあるかもしれません。一番シンプルな (単に except 句を使うだけでは処理できない) ケースでは次のようなコードになります: cleanup_needed = True try : result = perform_operation () if result : cleanup_needed = False finally : if cleanup_needed : cleanup ...
https://man.mtool.work/python/3.14/library/contextlib.html
変更履歴 — Python 3.14.8 ドキュメント 9619
ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » What's New in Python » 変更履歴 テーマ 自動 ライト ダーク | 変更履歴 ¶ Python next ¶ Release date: XXXX-XX-XX セキュリティ ¶ gh-157265 : In tarfile , when extrac ... sful transfer when the underlying system call failed without writing any data. gh-154307 : Fix tempfile.TemporaryDirectory.cleanup() on DragonFly BSD, where removing a file with the UF_NOUNLINK flag failed with EISDIR instead of EPERM . gh-154291 : Fix ... ualname__ attribute of __annotate__ functions on functions. gh-147998 : Fixed a memory leak in interpreter helper calls so cleanup works when an operation falls across interpreter boundaries. Patch by Maurycy Pawłowski-Wieroński. gh-146455 : Fix O(N²) c ... _remote_debugging module, including safer validation of remote int objects, clearer asyncio task chain failures, and cache cleanup fixes that avoid leaking or double-freeing metadata on allocation failure. Patch by Pablo Galindo. gh-146128 : Fix a bug w ...
https://man.mtool.work/python/3.14/whatsnew/changelog.html
unittest --- ユニットテストフレームワーク — Python 3.14.8 ドキュメント 8332
ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » The Python standard library » 開発ツール » unittest --- ユニットテストフレームワーク テーマ 自動 ライト ダーク | unittest --- ユニットテストフレームワーク ¶ ソー ... 更によって unittest 拡張に互換性の問題が発生し、 Python 3.2 でテスト名が追加される場所は TextTestResult へ移動しました。 addCleanup ( function , / , * args , ** kwargs ) ¶ tearDown() の後に呼び出される関数を追加します。この関数はリソースのクリーンアップの ... ために使用します。追加された関数は、追加された順と逆の順番で呼び出されます( LIFO )。 addCleanup() に渡された引数とキーワード引数が追加された関数にも渡されます。 setUp() が失敗した場合、つまり tearDown() が呼ばれなかった ... version 3.1. enterContext ( cm ) ¶ Enter the supplied context manager . If successful, also add its __exit__() method as a cleanup function by addCleanup() and return the result of the __enter__() method. Added in version 3.11. doCleanups ( ) ¶ このメソ ...
https://man.mtool.work/python/3.14/library/unittest.html
unittest --- ユニットテストフレームワーク — Python 3.14.8 ドキュメント 8332
ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » The Python standard library » 開発ツール » unittest --- ユニットテストフレームワーク テーマ 自動 ライト ダーク | unittest --- ユニットテストフレームワーク ¶ ソー ... 更によって unittest 拡張に互換性の問題が発生し、 Python 3.2 でテスト名が追加される場所は TextTestResult へ移動しました。 addCleanup ( function , / , * args , ** kwargs ) ¶ tearDown() の後に呼び出される関数を追加します。この関数はリソースのクリーンアップの ... ために使用します。追加された関数は、追加された順と逆の順番で呼び出されます( LIFO )。 addCleanup() に渡された引数とキーワード引数が追加された関数にも渡されます。 setUp() が失敗した場合、つまり tearDown() が呼ばれなかった ... version 3.1. enterContext ( cm ) ¶ Enter the supplied context manager . If successful, also add its __exit__() method as a cleanup function by addCleanup() and return the result of the __enter__() method. Added in version 3.11. doCleanups ( ) ¶ このメソ ...
https://man.mtool.work/python/3.14/library/unittest.html
multiprocessing.shared_memory --- プロセス間で直接アクセス可能な共有メモリ — Py... 8115
ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » The Python standard library » 並行実行 » multiprocessing.shared_memory --- プロセス間で直接アクセス可能な共有メモリ テーマ 自動 ライト ダーク | multiprocessing.s ... lled. When a shared memory block is no longer needed by any process, the unlink() method should be called to ensure proper cleanup. パラメータ : name ( str | None ) -- The unique name for the requested shared memory, specified as a string. When creating ... h a resource tracker process on platforms where the OS does not do this automatically. The resource tracker ensures proper cleanup of the shared memory even if all other processes with access to the memory exit without doing so. Python processes created ... erating system, the underlying memory may or may not be freed even if all handles to it have been closed. To ensure proper cleanup, use the unlink() method. unlink ( ) ¶ Delete the underlying shared memory block. This should be called only once per shar ...
https://man.mtool.work/python/3.14/library/multiprocessing.shared_memory.html
multiprocessing.shared_memory --- プロセス間で直接アクセス可能な共有メモリ — Py... 8115
ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » The Python standard library » 並行実行 » multiprocessing.shared_memory --- プロセス間で直接アクセス可能な共有メモリ テーマ 自動 ライト ダーク | multiprocessing.s ... lled. When a shared memory block is no longer needed by any process, the unlink() method should be called to ensure proper cleanup. パラメータ : name ( str | None ) -- The unique name for the requested shared memory, specified as a string. When creating ... h a resource tracker process on platforms where the OS does not do this automatically. The resource tracker ensures proper cleanup of the shared memory even if all other processes with access to the memory exit without doing so. Python processes created ... erating system, the underlying memory may or may not be freed even if all handles to it have been closed. To ensure proper cleanup, use the unlink() method. unlink ( ) ¶ Delete the underlying shared memory block. This should be called only once per shar ...
https://man.mtool.work/python/3.14/library/multiprocessing.shared_memory.html
What's New In Python 3.0 — Python 3.14.8 ドキュメント 7912
ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » What's New in Python » What's New In Python 3.0 テーマ 自動 ライト ダーク | What's New In Python 3.0 ¶ 著者 : Guido van Rossum この記事では 2.6 と比較した Python ... mpleXMLRPCServer ). PEP 3108 で取り上げられていない標準ライブラリーの他の変更: Killed sets . Use the built-in set() class. Cleanup of the sys module: removed sys.exitfunc() , sys.exc_clear() , sys.exc_type , sys.exc_value , sys.exc_traceback . (Note tha ... t sys.last_type etc. remain.) Cleanup of the array.array type: the read() and write() methods are gone; use fromfile() and tofile() instead. Also, the 'c' typec ... ode for array is gone -- use either 'b' for bytes or 'u' for Unicode characters. Cleanup of the operator module: removed sequenceIncludes() and isCallable() . Cleanup of the thread module: acquire_lock() and rel ...
https://man.mtool.work/python/3.14/whatsnew/3.0.html
PREV 1 2 3 4 5 6 7 8 9 NEXT