per page, with , order by , clip by
Results of 1 - 10 of about 196 for recent (0.009 sec.)
8. エラーと例外 — Python 3.14.8 ドキュメント 11236
ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » Python チュートリアル » 8. エラーと例外 テーマ 自動 ライト ダーク | 8. エラーと例外 ¶ これまでエラーメッセージについては簡単に触れるだけでしたが、チュートリアル中 ... きます。ほとんどの例外はプログラムで処理されず、以下に示されるようなメッセージになります: >>> 10 * ( 1 / 0 ) Traceback (most recent call last): File "<stdin>" , line 1 , in <module> 10 * ( 1 / 0 ) ~^~ ZeroDivisionError : division by zero >>> 4 + spam * 3 ... Traceback (most recent call last): File "<stdin>" , line 1 , in <module> 4 + spam * 3 ^^^^ NameError : name 'spam' is not defined >>> '2' + 2 Tra ... ceback (most recent call last): File "<stdin>" , line 1 , in <module> '2' + 2 ~~~~^~~ TypeError : can only concatenate str (not "int") to str ...
https://man.mtool.work/python/3.14/tutorial/errors.html
8. エラーと例外 — Python 3.14.8 ドキュメント 11236
ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » Python チュートリアル » 8. エラーと例外 テーマ 自動 ライト ダーク | 8. エラーと例外 ¶ これまでエラーメッセージについては簡単に触れるだけでしたが、チュートリアル中 ... きます。ほとんどの例外はプログラムで処理されず、以下に示されるようなメッセージになります: >>> 10 * ( 1 / 0 ) Traceback (most recent call last): File "<stdin>" , line 1 , in <module> 10 * ( 1 / 0 ) ~^~ ZeroDivisionError : division by zero >>> 4 + spam * 3 ... Traceback (most recent call last): File "<stdin>" , line 1 , in <module> 4 + spam * 3 ^^^^ NameError : name 'spam' is not defined >>> '2' + 2 Tra ... ceback (most recent call last): File "<stdin>" , line 1 , in <module> '2' + 2 ~~~~^~~ TypeError : can only concatenate str (not "int") to str ...
https://man.mtool.work/python/3.14/tutorial/errors.html
unittest.mock --- モックオブジェクトライブラリ — Python 3.14.8 ドキュメント 10046
ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » The Python standard library » 開発ツール » unittest.mock --- モックオブジェクトライブラリ テーマ 自動 ライト ダーク | unittest.mock --- モックオブジェクトライブラ ... できます: >>> from unittest.mock import Mock >>> mock = Mock ( side_effect = KeyError ( 'foo' )) >>> mock () Traceback (most recent call last): ... KeyError : 'foo' >>> values = { 'a' : 1 , 'b' : 2 , 'c' : 3 } >>> def side_effect ( arg ): ... return valu ... 'fishy' >>> mock_function . assert_called_once_with ( 1 , 2 , 3 ) >>> mock_function ( 'wrong arguments' ) Traceback (most recent call last): ... TypeError : missing a required argument: 'b' create_autospec() はクラスにおいても利用でき、 __init__ メソッ ... nce () >>> mock . method () <Mock name='mock.method()' id='...'> >>> mock . method . assert_called_once () Traceback (most recent call last): ... AssertionError : Expected 'method' to have been called once. Called 2 times. Calls: [call(), call()]. Adde ...
https://man.mtool.work/python/3.14/library/unittest.mock.html
unittest.mock --- モックオブジェクトライブラリ — Python 3.14.8 ドキュメント 10046
ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » The Python standard library » 開発ツール » unittest.mock --- モックオブジェクトライブラリ テーマ 自動 ライト ダーク | unittest.mock --- モックオブジェクトライブラ ... できます: >>> from unittest.mock import Mock >>> mock = Mock ( side_effect = KeyError ( 'foo' )) >>> mock () Traceback (most recent call last): ... KeyError : 'foo' >>> values = { 'a' : 1 , 'b' : 2 , 'c' : 3 } >>> def side_effect ( arg ): ... return valu ... 'fishy' >>> mock_function . assert_called_once_with ( 1 , 2 , 3 ) >>> mock_function ( 'wrong arguments' ) Traceback (most recent call last): ... TypeError : missing a required argument: 'b' create_autospec() はクラスにおいても利用でき、 __init__ メソッ ... nce () >>> mock . method () <Mock name='mock.method()' id='...'> >>> mock . method . assert_called_once () Traceback (most recent call last): ... AssertionError : Expected 'method' to have been called once. Called 2 times. Calls: [call(), call()]. Adde ...
https://man.mtool.work/python/3.14/library/unittest.mock.html
asyncio での開発 — Python 3.14.8 ドキュメント 8143
ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » The Python standard library » ネットワーク通信とプロセス間通信 » asyncio --- 非同期 I/O » asyncio での開発 テーマ 自動 ライト ダーク | asyncio での開発 ¶ 非同期プ ... t () デバッグモードの出力: test . py : 7 : RuntimeWarning : coroutine 'test' was never awaited Coroutine created at ( most recent call last ) File "../t.py" , line 9 , in < module > asyncio . run ( main (), debug = True ) < .. > File "../t.py" , line 7 ... Task finished coro =< bug () done , defined at test . py : 3 > exception = Exception ( 'not consumed' ) > Traceback ( most recent call last ): File "test.py" , line 4 , in bug raise Exception ( "not consumed" ) Exception : not consumed タスクが生成され ... ception = Exception ( 'not consumed' ) created at asyncio / tasks . py : 321 > source_traceback : Object created at ( most recent call last ): File "../t.py" , line 9 , in < module > asyncio . run ( main (), debug = True ) < .. > Traceback ( most recen ...
https://man.mtool.work/python/3.14/library/asyncio-dev.html
asyncio での開発 — Python 3.14.8 ドキュメント 8143
ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » The Python standard library » ネットワーク通信とプロセス間通信 » asyncio --- 非同期 I/O » asyncio での開発 テーマ 自動 ライト ダーク | asyncio での開発 ¶ 非同期プ ... t () デバッグモードの出力: test . py : 7 : RuntimeWarning : coroutine 'test' was never awaited Coroutine created at ( most recent call last ) File "../t.py" , line 9 , in < module > asyncio . run ( main (), debug = True ) < .. > File "../t.py" , line 7 ... Task finished coro =< bug () done , defined at test . py : 3 > exception = Exception ( 'not consumed' ) > Traceback ( most recent call last ): File "test.py" , line 4 , in bug raise Exception ( "not consumed" ) Exception : not consumed タスクが生成され ... ception = Exception ( 'not consumed' ) created at asyncio / tasks . py : 321 > source_traceback : Object created at ( most recent call last ): File "../t.py" , line 9 , in < module > asyncio . run ( main (), debug = True ) < .. > Traceback ( most recen ...
https://man.mtool.work/python/3.14/library/asyncio-dev.html
traceback --- スタックトレースの表示または取得 — Python 3.14.8 ドキュメント 8024
ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » The Python standard library » Python ランタイムサービス » traceback --- スタックトレースの表示または取得 テーマ 自動 ライト ダーク | traceback --- スタックトレー ... レースの項目を file に出力します。 この関数は以下の点で print_tb() と異なります: tb が None でない場合ヘッダ Traceback (most recent call last): を出力します スタックトレースの後に例外タイプと value を出力します type(value) が SyntaxError であり、 value が ... ます: *** print_tb: File "<doctest...>", line 10, in <module> lumberjack() ~~~~~~~~~~^^ *** print_exception: Traceback (most recent call last): File "<doctest...>", line 10, in <module> lumberjack() ~~~~~~~~~~^^ File "<doctest...>", line 4, in lumberjack ... bright_side_of_life() ~~~~~~~~~~~~~~~~~~~^^ IndexError: tuple index out of range *** print_exc: Traceback (most recent call last): File "<doctest...>", line 10, in <module> lumberjack() ~~~~~~~~~~^^ File "<doctest...>", line 4, in lumberjack ...
https://man.mtool.work/python/3.14/library/traceback.html
traceback --- スタックトレースの表示または取得 — Python 3.14.8 ドキュメント 8024
ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » The Python standard library » Python ランタイムサービス » traceback --- スタックトレースの表示または取得 テーマ 自動 ライト ダーク | traceback --- スタックトレー ... レースの項目を file に出力します。 この関数は以下の点で print_tb() と異なります: tb が None でない場合ヘッダ Traceback (most recent call last): を出力します スタックトレースの後に例外タイプと value を出力します type(value) が SyntaxError であり、 value が ... ます: *** print_tb: File "<doctest...>", line 10, in <module> lumberjack() ~~~~~~~~~~^^ *** print_exception: Traceback (most recent call last): File "<doctest...>", line 10, in <module> lumberjack() ~~~~~~~~~~^^ File "<doctest...>", line 4, in lumberjack ... bright_side_of_life() ~~~~~~~~~~~~~~~~~~~^^ IndexError: tuple index out of range *** print_exc: Traceback (most recent call last): File "<doctest...>", line 10, in <module> lumberjack() ~~~~~~~~~~^^ File "<doctest...>", line 4, in lumberjack ...
https://man.mtool.work/python/3.14/library/traceback.html
tracemalloc --- メモリ割り当ての追跡 — Python 3.14.8 ドキュメント 7905
ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » The Python standard library » Debugging and Profiling » tracemalloc --- メモリ割り当ての追跡 テーマ 自動 ライト ダーク | tracemalloc --- メモリ割り当ての追跡 ¶ A ... dule to load data (bytecode and constants) from modules: 870.1 KiB . The traceback is where the importlib loaded data most recently: on the import pdb line of the doctest module. The traceback may change if a new module is loaded. top を整形化する ¶ <f ... cumulative is True , cumulate size and count of memory blocks of all frames of the traceback of a trace, not only the most recent frame. The cumulative mode can only be used with key_type equal to 'filename' and 'lineno' . 結果は降順でソートされます: キ ... ンスタンス。 Traceback ¶ class tracemalloc. Traceback ¶ Sequence of Frame instances sorted from the oldest frame to the most recent frame. A traceback contains at least 1 frame. If the tracemalloc module failed to get a frame, the filename "<unknown>" at ...
https://man.mtool.work/python/3.14/library/tracemalloc.html
tracemalloc --- メモリ割り当ての追跡 — Python 3.14.8 ドキュメント 7905
ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » The Python standard library » Debugging and Profiling » tracemalloc --- メモリ割り当ての追跡 テーマ 自動 ライト ダーク | tracemalloc --- メモリ割り当ての追跡 ¶ A ... dule to load data (bytecode and constants) from modules: 870.1 KiB . The traceback is where the importlib loaded data most recently: on the import pdb line of the doctest module. The traceback may change if a new module is loaded. top を整形化する ¶ <f ... cumulative is True , cumulate size and count of memory blocks of all frames of the traceback of a trace, not only the most recent frame. The cumulative mode can only be used with key_type equal to 'filename' and 'lineno' . 結果は降順でソートされます: キ ... ンスタンス。 Traceback ¶ class tracemalloc. Traceback ¶ Sequence of Frame instances sorted from the oldest frame to the most recent frame. A traceback contains at least 1 frame. If the tracemalloc module failed to get a frame, the filename "<unknown>" at ...
https://man.mtool.work/python/3.14/library/tracemalloc.html
PREV 1 2 3 4 5 6 7 8 9 10 NEXT