Results of 1 - 10 of about 234 for explicitly (0.052 sec.)
- 変更履歴 — Python 3.14.8 ドキュメント 11049
- ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » What's New in Python » 変更履歴 テーマ 自動 ライト ダーク | 変更履歴 ¶ Python next ¶ Release date: XXXX-XX-XX セキュリティ ¶ gh-157265 : In tarfile , when extrac
...tions. Patch by tonghuaroot. gh-80937 : Fix a memory leak in tkinter when a Tcl command created with createcommand was not explicitly removed before the interpreter was deleted. The command no longer keeps the interpreter alive through a reference cycle. g...nes file with JSON CLI . gh-70039 : Fixed bug where smtplib.SMTP.starttls() could fail if smtplib.SMTP.connect() is called explicitly rather than implicitly. gh-83281 : email : improve handling trailing garbage in address lists to avoid throwing AttributeE...x a crash in _interpchannels.list_all() after closing a channel. gh-143698 : Allow scheduler and setpgroup arguments to be explicitly None when calling os.posix_spawn() or os.posix_spawnp() . Patch by Bénédikt Tran. gh-143698 : Raise TypeError instead of S... - https://man.mtool.work/python/3.14/whatsnew/changelog.html
- Pending removal in Python 3.17 — Python 3.14.8 ドキュメント 9738
- ナビゲーション 索引 モジュール | Python » 3.14.8 Documentation » Pending removal in Python 3.17 テーマ 自動 ライト ダーク | Pending removal in Python 3.17 ¶ collections.abc : collections.abc.ByteString is scheduled for removal in Python 3.1
...) to test if obj implements the buffer protocol at runtime. For use in type annotations, either use Buffer or a union that explicitly specifies the types your code supports (e.g., bytes | bytearray | memoryview ). ByteString was originally intended to be a...) to test if obj implements the buffer protocol at runtime. For use in type annotations, either use Buffer or a union that explicitly specifies the types your code supports (e.g., bytes | bytearray | memoryview ). ByteString was originally intended to be a...untime type types bytes bytearray memoryview scheduled since were details isinstance implements protocol annotations union explicitly specifies code This page Report a bug Improve this page Show source Show translation source « ナビゲーション 索引 モジュー... - https://man.mtool.work/python/3.14/deprecations/pending-removal-in-3.17.html
- Python 開発モード — Python 3.14.8 ドキュメント 9083
- ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » The Python standard library » 開発ツール » Python 開発モード テーマ 自動 ライト ダーク | Python 開発モード ¶ Added in version 3.7. The Python Development Mode in
...()) print ( nlines ) # ファイルは暗黙的に閉じられる if __name__ == "__main__" : main () The script does not close the file explicitly. By default, Python does not emit any warning. Example using README.txt, which has 269 lines: $ python script.py README.tx...ecent call last): File "script.py", lineno 10 main() File "script.py", lineno 4 fp = open(sys.argv[1]) The fix is to close explicitly the file. Example using a context manager: def main (): # ブロックを終了する際に明示的にファイルを閉じる 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 Python. It is bad in CPyth... - https://man.mtool.work/python/3.14/library/devmode.html
- Python 開発モード — Python 3.14.8 ドキュメント 9083
- ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » The Python standard library » 開発ツール » Python 開発モード テーマ 自動 ライト ダーク | Python 開発モード ¶ Added in version 3.7. The Python Development Mode in
...()) print ( nlines ) # ファイルは暗黙的に閉じられる if __name__ == "__main__" : main () The script does not close the file explicitly. By default, Python does not emit any warning. Example using README.txt, which has 269 lines: $ python script.py README.tx...ecent call last): File "script.py", lineno 10 main() File "script.py", lineno 4 fp = open(sys.argv[1]) The fix is to close explicitly the file. Example using a context manager: def main (): # ブロックを終了する際に明示的にファイルを閉じる 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 Python. It is bad in CPyth... - https://man.mtool.work/python/3.14/library/devmode.html
- What's New In Python 3.13 — Python 3.14.8 ドキュメント 8427
- ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » What's New in Python » What's New In Python 3.13 テーマ 自動 ライト ダーク | What's New In Python 3.13 ¶ エディタ : Adam Turner と Thomas Wouters この記事では Py
...ion scopes, but changes optimized scopes (functions, generators, coroutines, comprehensions, and generator expressions) to explicitly return independent snapshots of the currently assigned local variables, including locally referenced nonlocal variables ca...jects have a new _align_ attribute which allows the alignment of the structure being packed to/from memory to be specified explicitly. (Contributed by Matt Sanderson in gh-112433 ) dbm ¶ Add dbm.sqlite3 , a new module which implements an SQLite backend, an...Contributed by Inada Naoki in gh-117802 .) sqlite3 ¶ A ResourceWarning is now emitted if a Connection object is not closed explicitly. (Contributed by Erlend E. Aasland in gh-105539 .) Add the filter keyword-only parameter to Connection.iterdump() for filt... - https://man.mtool.work/python/3.14/whatsnew/3.13.html
- zipimport --- Zip アーカイブからモジュールをインポートする — Python 3.14.8 ドキ... 8427
- ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » The Python standard library » モジュールのインポート » zipimport --- Zip アーカイブからモジュールをインポートする テーマ 自動 ライト ダーク | zipimport --- Zip ア
...ython modules ( *.py , *.pyc ) and packages from ZIP-format archives. It is usually not needed to use the zipimport module explicitly; it is automatically used by the built-in import mechanism for sys.path items that are paths to ZIP archives. 普通、 sys.p...find_spec() instead. create_module ( spec ) ¶ Implementation of importlib.abc.Loader.create_module() that returns None to explicitly request the default semantics. Added in version 3.10. exec_module ( module ) ¶ importlib.abc.Loader.exec_module() の実装で...しくなります。 使用例 ¶ Here is an example that imports a module from a ZIP archive - note that the zipimport module is not explicitly used. $ unzip -l example_archive.zip Archive: example_archive.zip Length Date Time Name -------- ---- ---- ---- 8467 01-01... - https://man.mtool.work/python/3.14/library/zipimport.html
- What's New In Python 3.13 — Python 3.14.8 ドキュメント 8427
- ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » What's New in Python » What's New In Python 3.13 テーマ 自動 ライト ダーク | What's New In Python 3.13 ¶ エディタ : Adam Turner と Thomas Wouters この記事では Py
...ion scopes, but changes optimized scopes (functions, generators, coroutines, comprehensions, and generator expressions) to explicitly return independent snapshots of the currently assigned local variables, including locally referenced nonlocal variables ca...jects have a new _align_ attribute which allows the alignment of the structure being packed to/from memory to be specified explicitly. (Contributed by Matt Sanderson in gh-112433 ) dbm ¶ Add dbm.sqlite3 , a new module which implements an SQLite backend, an...Contributed by Inada Naoki in gh-117802 .) sqlite3 ¶ A ResourceWarning is now emitted if a Connection object is not closed explicitly. (Contributed by Erlend E. Aasland in gh-105539 .) Add the filter keyword-only parameter to Connection.iterdump() for filt... - https://man.mtool.work/python/3.14/whatsnew/3.13.html
- Pending removal in Python 3.17 — Python 3.14.8 ドキュメント 7772
- ナビゲーション 索引 モジュール | Python » 3.14.8 Documentation » Pending removal in Python 3.17 テーマ 自動 ライト ダーク | Pending removal in Python 3.17 ¶ collections.abc : collections.abc.ByteString is scheduled for removal in Python 3.1
...) to test if obj implements the buffer protocol at runtime. For use in type annotations, either use Buffer or a union that explicitly specifies the types your code supports (e.g., bytes | bytearray | memoryview ). ByteString was originally intended to be a...) to test if obj implements the buffer protocol at runtime. For use in type annotations, either use Buffer or a union that explicitly specifies the types your code supports (e.g., bytes | bytearray | memoryview ). ByteString was originally intended to be a... - https://man.mtool.work/python/3.14/deprecations/pending-removal-in-3.17.html
- typing --- 型ヒントのサポート — Python 3.14.8 ドキュメント 7772
- ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » The Python standard library » 開発ツール » typing --- 型ヒントのサポート テーマ 自動 ライト ダーク | typing --- 型ヒントのサポート ¶ Added in version 3.5. ソース
...te_stream ( start : int ) -> Generator [ int ]: while True : yield start start += 1 It is also possible to set these types explicitly: def infinite_stream ( start : int ) -> Generator [ int , None , None ]: while True : yield start start += 1 Simple genera...ric classes implicitly inherit from Generic . For compatibility with Python 3.11 and lower, it is also possible to inherit explicitly from Generic to indicate a generic class: from typing import TypeVar , Generic T = TypeVar ( 'T' ) class LoggedVar ( Gener...ョン 3.12 で変更: Syntactic support for generics and type aliases is new in version 3.12. Previously, generic classes had to explicitly inherit from Generic or contain a type variable in one of their bases. User-defined generics for parameter expressions are... - https://man.mtool.work/python/3.14/library/typing.html
- typing --- 型ヒントのサポート — Python 3.14.8 ドキュメント 7772
- ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » The Python standard library » 開発ツール » typing --- 型ヒントのサポート テーマ 自動 ライト ダーク | typing --- 型ヒントのサポート ¶ Added in version 3.5. ソース
...te_stream ( start : int ) -> Generator [ int ]: while True : yield start start += 1 It is also possible to set these types explicitly: def infinite_stream ( start : int ) -> Generator [ int , None , None ]: while True : yield start start += 1 Simple genera...ric classes implicitly inherit from Generic . For compatibility with Python 3.11 and lower, it is also possible to inherit explicitly from Generic to indicate a generic class: from typing import TypeVar , Generic T = TypeVar ( 'T' ) class LoggedVar ( Gener...ョン 3.12 で変更: Syntactic support for generics and type aliases is new in version 3.12. Previously, generic classes had to explicitly inherit from Generic or contain a type variable in one of their bases. User-defined generics for parameter expressions are... - https://man.mtool.work/python/3.14/library/typing.html