Results of 1 - 10 of about 68 for closing (0.052 sec.)
- contextlib --- with 文コンテキスト用ユーティリティ — Python 3.14.8 ドキュメント 11630
- ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » The Python standard library » Python ランタイムサービス » contextlib --- with 文コンテキスト用ユーティリティ テーマ 自動 ライト ダーク | contextlib --- with 文コ
...o be managed that isn't a context manager in its own right, and doesn't implement a close() method for use with contextlib.closing . リソースを正しく管理するよう保証する抽象的な例は以下のようなものでしょう: from contextlib import contextmanager @context...s. バージョン 3.10 で変更: Async context managers created with @asynccontextmanager can be used as decorators. contextlib. closing ( thing ) ¶ ブロックの完了時に thing を close するコンテキストマネージャを返します。これは基本的に以下と等価です: from con...textlib import contextmanager @contextmanager def closing ( thing ): try : yield thing finally : thing . close () そして、明示的に page を close する必要なしに、次のように書くことが... - https://man.mtool.work/python/3.14/library/contextlib.html
- 変更履歴 — Python 3.14.8 ドキュメント 11630
- ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » What's New in Python » 変更履歴 テーマ 自動 ライト ダーク | 変更履歴 ¶ Python next ¶ Release date: XXXX-XX-XX セキュリティ ¶ gh-157265 : In tarfile , when extrac
...tespace in a t-string interpolation expression is now preserved in string.templatelib.Interpolation.expression , up to the closing } or the conversion ( ! ), format ( : ), or debug ( = ) delimiter. Explicit line continuations following a debug = remain...Solaris. Unread data sitting in the FIFO made the transport misinterpret a poll event as the reader disconnecting, wrongly closing the transport. gh-154001 : Fix random.binomialvariate() raising ZeroDivisionError when random.random() returns zero. gh-15...s "xmp", "iframe", "noembed", "noframes", and "plaintext" is no longer escaped. The "plaintext" element no longer have the closing tag. gh-149231 : In tomllib , the number of parts in TOML keys is now limited. gh-149046 : io : Fix io.StringIO serializat... - https://man.mtool.work/python/3.14/whatsnew/changelog.html
- contextlib --- with 文コンテキスト用ユーティリティ — Python 3.14.8 ドキュメント 11630
- ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » The Python standard library » Python ランタイムサービス » contextlib --- with 文コンテキスト用ユーティリティ テーマ 自動 ライト ダーク | contextlib --- with 文コ
...o be managed that isn't a context manager in its own right, and doesn't implement a close() method for use with contextlib.closing . リソースを正しく管理するよう保証する抽象的な例は以下のようなものでしょう: from contextlib import contextmanager @context...s. バージョン 3.10 で変更: Async context managers created with @asynccontextmanager can be used as decorators. contextlib. closing ( thing ) ¶ ブロックの完了時に thing を close するコンテキストマネージャを返します。これは基本的に以下と等価です: from con...textlib import contextmanager @contextmanager def closing ( thing ): try : yield thing finally : thing . close () そして、明示的に page を close する必要なしに、次のように書くことが... - https://man.mtool.work/python/3.14/library/contextlib.html
- Python 開発モード — Python 3.14.8 ドキュメント 10282
- ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » The Python standard library » 開発ツール » Python 開発モード テーマ 自動 ライト ダーク | Python 開発モード ¶ Added in version 3.7. The Python Development Mode in
...る際に明示的にファイルを閉じる with open ( sys . argv [ 1 ]) as fp : nlines = len ( fp . readlines ()) print ( nlines ) Not closing a resource explicitly can leave a resource open for way longer than expected; it can cause severe issues upon exiting Pyth...on. It is bad in CPython, but it is even worse in PyPy. Closing resources explicitly makes an application more deterministic and more reliable. Bad file descriptor error example ¶ Script...gain, it fails with the Bad file descriptor error. A file descriptor must be closed only once. In the worst case scenario, closing it twice can lead to a crash (see bpo-18748 for an example). The fix is to remove the os.close(fp.fileno()) line, or open... - https://man.mtool.work/python/3.14/library/devmode.html
- Python 開発モード — Python 3.14.8 ドキュメント 10282
- ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » The Python standard library » 開発ツール » Python 開発モード テーマ 自動 ライト ダーク | Python 開発モード ¶ Added in version 3.7. The Python Development Mode in
...る際に明示的にファイルを閉じる with open ( sys . argv [ 1 ]) as fp : nlines = len ( fp . readlines ()) print ( nlines ) Not closing a resource explicitly can leave a resource open for way longer than expected; it can cause severe issues upon exiting Pyth...on. It is bad in CPython, but it is even worse in PyPy. Closing resources explicitly makes an application more deterministic and more reliable. Bad file descriptor error example ¶ Script...gain, it fails with the Bad file descriptor error. A file descriptor must be closed only once. In the worst case scenario, closing it twice can lead to a crash (see bpo-18748 for an example). The fix is to remove the os.close(fp.fileno()) line, or open... - https://man.mtool.work/python/3.14/library/devmode.html
- dbm --- Unix "データベース" へのインターフェース — Python 3.14.8 ドキュメント 10013
- ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » The Python standard library » データの永続化 » dbm --- Unix "データベース" へのインターフェース テーマ 自動 ライト ダーク | dbm --- Unix "データベース" へのインタ
...le mapping , but the keys() method returns a list, and the setdefault() method requires two arguments. It also supports a "closing" context manager via the with keyword. 次のメソッドを提供しています: sqlite3. close ( ) ¶ Close the SQLite database. dbm.g...e not supported, the keys() method returns a list, and the setdefault() method requires two arguments. It also supports a "closing" context manager via the with keyword. バージョン 3.2 で変更: Added the get() and setdefault() methods. バージョン 3.13 で...e not supported, the keys() method returns a list, and the setdefault() method requires two arguments. It also supports a "closing" context manager via the with keyword. バージョン 3.2 で変更: Added the get() and setdefault() methods. バージョン 3.13 で... - https://man.mtool.work/python/3.14/library/dbm.html
- dbm --- Unix "データベース" へのインターフェース — Python 3.14.8 ドキュメント 10013
- ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » The Python standard library » データの永続化 » dbm --- Unix "データベース" へのインターフェース テーマ 自動 ライト ダーク | dbm --- Unix "データベース" へのインタ
...le mapping , but the keys() method returns a list, and the setdefault() method requires two arguments. It also supports a "closing" context manager via the with keyword. 次のメソッドを提供しています: sqlite3. close ( ) ¶ Close the SQLite database. dbm.g...e not supported, the keys() method returns a list, and the setdefault() method requires two arguments. It also supports a "closing" context manager via the with keyword. バージョン 3.2 で変更: Added the get() and setdefault() methods. バージョン 3.13 で...e not supported, the keys() method returns a list, and the setdefault() method requires two arguments. It also supports a "closing" context manager via the with keyword. バージョン 3.2 で変更: Added the get() and setdefault() methods. バージョン 3.13 で... - https://man.mtool.work/python/3.14/library/dbm.html
- timer file descriptor HOWTO — Python 3.14.8 ドキュメント 8410
- ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » Python HOWTO » timer file descriptor HOWTO テーマ 自動 ライト ダーク | timer file descriptor HOWTO ¶ リリース : 1.13 This HOWTO discusses Python's support for th
...ver" ) is_active = False else : print ( f "Unknown command: { cmd } " ) else : # No more data, close connection print ( f "Closing connection { fd } " ) ep . unregister ( conn ) conn . close () conn = None elif fd in fds : print ( f "Reading timer { fd...ver" ) is_active = False else : print ( f "Unknown command: { cmd } " ) else : # No more data, close connection print ( f "Closing connection { fd } " ) select_fds . remove ( conn ) conn . close () conn = None elif fd in fds : print ( f "Reading timer {... - https://man.mtool.work/python/3.14/howto/timerfd.html
- token --- Python 解析木で使われる定数 — Python 3.14.8 ドキュメント 8410
- ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » The Python standard library » Python言語サービス » token --- Python 解析木で使われる定数 テーマ 自動 ライト ダーク | token --- Python 解析木で使われる定数 ¶ ソー
...oken. FSTRING_END ¶ Token value used to indicate the end of a f-string . CPython 実装の詳細: The token string contains the closing quote(s). token. TSTRING_START ¶ Token value used to indicate the beginning of a template string literal. CPython 実装の詳...END ¶ Token value used to indicate the end of a template string literal. CPython 実装の詳細: The token string contains the closing quote(s). Added in version 3.14. token. ENDMARKER ¶ Token value that indicates the end of input. Used in top-level grammar... - https://man.mtool.work/python/3.14/library/token.html
- timer file descriptor HOWTO — Python 3.14.8 ドキュメント 8410
- ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » Python HOWTO » timer file descriptor HOWTO テーマ 自動 ライト ダーク | timer file descriptor HOWTO ¶ リリース : 1.13 This HOWTO discusses Python's support for th
...ver" ) is_active = False else : print ( f "Unknown command: { cmd } " ) else : # No more data, close connection print ( f "Closing connection { fd } " ) ep . unregister ( conn ) conn . close () conn = None elif fd in fds : print ( f "Reading timer { fd...ver" ) is_active = False else : print ( f "Unknown command: { cmd } " ) else : # No more data, close connection print ( f "Closing connection { fd } " ) select_fds . remove ( conn ) conn . close () conn = None elif fd in fds : print ( f "Reading timer {... - https://man.mtool.work/python/3.14/howto/timerfd.html