Results of 1 - 10 of about 264 for traceback (0.007 sec.)
- traceback --- スタックトレースの表示または取得 — Python 3.14.8 ドキュメント 11027
- ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » The Python standard library » Python ランタイムサービス » traceback --- スタックトレースの表示または取得 テーマ 自動 ライト ダーク | traceback --- スタックトレー
...スの表示または取得 ¶ ソースコード: Lib/traceback.py This module provides a standard interface to extract, format and print stack traces of Python programs. It is more flex...ible than the interpreter's default traceback display, and therefore makes it possible to configure certain aspects of the output. Finally, it contains a utility for ca...eptions can be the roots of large objects graph, this utility can significantly improve memory management. The module uses traceback objects --- these are objects of type types.TracebackType , which are assigned to the __traceback__ field of BaseException... - https://man.mtool.work/python/3.14/library/traceback.html
- traceback --- スタックトレースの表示または取得 — Python 3.14.8 ドキュメント 11027
- ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » The Python standard library » Python ランタイムサービス » traceback --- スタックトレースの表示または取得 テーマ 自動 ライト ダーク | traceback --- スタックトレー
...スの表示または取得 ¶ ソースコード: Lib/traceback.py This module provides a standard interface to extract, format and print stack traces of Python programs. It is more flex...ible than the interpreter's default traceback display, and therefore makes it possible to configure certain aspects of the output. Finally, it contains a utility for ca...eptions can be the roots of large objects graph, this utility can significantly improve memory management. The module uses traceback objects --- these are objects of type types.TracebackType , which are assigned to the __traceback__ field of BaseException... - https://man.mtool.work/python/3.14/library/traceback.html
- tracemalloc --- メモリ割り当ての追跡 — Python 3.14.8 ドキュメント 10101
- ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » The Python standard library » Debugging and Profiling » tracemalloc --- メモリ割り当ての追跡 テーマ 自動 ライト ダーク | tracemalloc --- メモリ割り当ての追跡 ¶ A
...start ( 25 ) # ... run your application ... snapshot = tracemalloc . take_snapshot () top_stats = snapshot . statistics ( 'traceback' ) # pick the biggest memory block stat = top_stats [ 0 ] print ( " %s memory blocks: %.1f KiB" % ( stat . count , stat ....size / 1024 )) for line in stat . traceback . format (): print ( line ) Python テストスイートの出力例です (トレースバックは 25 フレームに制限されています): 903 memory...the most memory was allocated in the importlib module 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 i... - https://man.mtool.work/python/3.14/library/tracemalloc.html
- tracemalloc --- メモリ割り当ての追跡 — Python 3.14.8 ドキュメント 10101
- ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » The Python standard library » Debugging and Profiling » tracemalloc --- メモリ割り当ての追跡 テーマ 自動 ライト ダーク | tracemalloc --- メモリ割り当ての追跡 ¶ A
...start ( 25 ) # ... run your application ... snapshot = tracemalloc . take_snapshot () top_stats = snapshot . statistics ( 'traceback' ) # pick the biggest memory block stat = top_stats [ 0 ] print ( " %s memory blocks: %.1f KiB" % ( stat . count , stat ....size / 1024 )) for line in stat . traceback . format (): print ( line ) Python テストスイートの出力例です (トレースバックは 25 フレームに制限されています): 903 memory...the most memory was allocated in the importlib module 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 i... - https://man.mtool.work/python/3.14/library/tracemalloc.html
- faulthandler --- Python トレースバックをダンプする — Python 3.14.8 ドキュメント 9263
- ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » The Python standard library » Debugging and Profiling » faulthandler --- Python トレースバックをダンプする テーマ 自動 ライト ダーク | faulthandler --- Python ト
...プする ¶ Added in version 3.3. このモジュールは、例外発生時、タイムアウト時、ユーザシグナルの発生時などのタイミングでpython tracebackを明示的にダンプするための関数を含んでいます。これらのシグナル、 SIGSEGV 、 SIGFPE 、 SIGABRT 、 SIGBUS 、 SIGILL に対するフ...されます。そのためシグナルセーフな関数しか使うことができません (例: ヒープメモリ上にメモリ確保はできません)。この制限により、tracebackのダンプ機能は通常のPythonのtracebackと比べてごく僅かなものです: ASCIIのみサポートされます。エンコード時には backslashreplac...is limited to 100 frames and 100 threads. 順番は保持されます: 最新の呼び出しが最初に表示されます。 デフォルトでは、Pythonのtracebackは sys.stderr に書き出されます。tracebackを見るには、対象アプリケーションはターミナル上で実行しなければなりません。 faulthan... - https://man.mtool.work/python/3.14/library/faulthandler.html
- faulthandler --- Python トレースバックをダンプする — Python 3.14.8 ドキュメント 9263
- ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » The Python standard library » Debugging and Profiling » faulthandler --- Python トレースバックをダンプする テーマ 自動 ライト ダーク | faulthandler --- Python ト
...プする ¶ Added in version 3.3. このモジュールは、例外発生時、タイムアウト時、ユーザシグナルの発生時などのタイミングでpython tracebackを明示的にダンプするための関数を含んでいます。これらのシグナル、 SIGSEGV 、 SIGFPE 、 SIGABRT 、 SIGBUS 、 SIGILL に対するフ...されます。そのためシグナルセーフな関数しか使うことができません (例: ヒープメモリ上にメモリ確保はできません)。この制限により、tracebackのダンプ機能は通常のPythonのtracebackと比べてごく僅かなものです: ASCIIのみサポートされます。エンコード時には backslashreplac...is limited to 100 frames and 100 threads. 順番は保持されます: 最新の呼び出しが最初に表示されます。 デフォルトでは、Pythonのtracebackは sys.stderr に書き出されます。tracebackを見るには、対象アプリケーションはターミナル上で実行しなければなりません。 faulthan... - https://man.mtool.work/python/3.14/library/faulthandler.html
- 例外処理 — Python 3.14.8 ドキュメント 7233
- ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » Python/C API reference manual » 例外処理 テーマ 自動 ライト ダーク | 例外処理 ¶ この章で説明する関数を使うと、 Python の例外の処理や例外の送出ができるようになりま
...o the printed exception. For backwards compatibility, the deprecated variables sys.last_type , sys.last_value and sys.last_traceback are also set to the type, value and traceback of this exception, respectively. バージョン 3.12 で変更: The setting of sys....aisable exception occurred. If possible, the repr of obj will be printed in the warning message. If obj is NULL , only the traceback is printed. この関数を呼び出すときには、例外がセットされていなければなりません。 バージョン 3.4 で変更: Print a traceback....Print only traceback if obj is NULL . バージョン 3.8 で変更: Use sys.unraisablehook() . void PyErr_FormatUnraisable ( const char * format , ...... - https://man.mtool.work/python/3.14/c-api/exceptions.html
- 例外処理 — Python 3.14.8 ドキュメント 7233
- ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » Python/C API reference manual » 例外処理 テーマ 自動 ライト ダーク | 例外処理 ¶ この章で説明する関数を使うと、 Python の例外の処理や例外の送出ができるようになりま
...o the printed exception. For backwards compatibility, the deprecated variables sys.last_type , sys.last_value and sys.last_traceback are also set to the type, value and traceback of this exception, respectively. バージョン 3.12 で変更: The setting of sys....aisable exception occurred. If possible, the repr of obj will be printed in the warning message. If obj is NULL , only the traceback is printed. この関数を呼び出すときには、例外がセットされていなければなりません。 バージョン 3.4 で変更: Print a traceback....Print only traceback if obj is NULL . バージョン 3.8 で変更: Use sys.unraisablehook() . void PyErr_FormatUnraisable ( const char * format , ...... - https://man.mtool.work/python/3.14/c-api/exceptions.html
- 8. エラーと例外 — Python 3.14.8 ドキュメント 6927
- ナビゲーション 索引 モジュール | 次へ | 前へ | 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 Traceback (most recent call last): File "<stdin>" , line 1 , in <module> '2' + 2 ~~~~^~~ TypeError : can only concatenate str (not "... - https://man.mtool.work/python/3.14/tutorial/errors.html
- 8. エラーと例外 — Python 3.14.8 ドキュメント 6927
- ナビゲーション 索引 モジュール | 次へ | 前へ | 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 Traceback (most recent call last): File "<stdin>" , line 1 , in <module> '2' + 2 ~~~~^~~ TypeError : can only concatenate str (not "... - https://man.mtool.work/python/3.14/tutorial/errors.html