Results of 1 - 10 of about 95 for doctest (0.012 sec.)
- doctest --- 対話型の Python の例をテストする — Python 3.14.8 ドキュメント 14390
- ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » The Python standard library » 開発ツール » doctest --- 対話型の Python の例をテストする テーマ 自動 ライト ダーク | doctest --- 対話型の Python の例をテストする
...¶ ソースコード: Lib/doctest.py The doctest module searches for pieces of text that look like interactive Python sessions, and then executes those sess...ions to verify that they work exactly as shown. There are several common ways to use doctest: モジュールの docstring (ドキュメンテーション文字列) 中にある対話実行例のすべてが書かれている通りに動作するか検証することで...) result = 1 factor = 2 while factor <= n : result *= factor factor += 1 return result if __name__ == "__main__" : import doctest doctest . testmod () If you run example.py directly from the command line, doctest works its magic: $ python example.py $... - https://man.mtool.work/python/3.14/library/doctest.html
- doctest --- 対話型の Python の例をテストする — Python 3.14.8 ドキュメント 14390
- ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » The Python standard library » 開発ツール » doctest --- 対話型の Python の例をテストする テーマ 自動 ライト ダーク | doctest --- 対話型の Python の例をテストする
...¶ ソースコード: Lib/doctest.py The doctest module searches for pieces of text that look like interactive Python sessions, and then executes those sess...ions to verify that they work exactly as shown. There are several common ways to use doctest: モジュールの docstring (ドキュメンテーション文字列) 中にある対話実行例のすべてが書かれている通りに動作するか検証することで...) result = 1 factor = 2 while factor <= n : result *= factor factor += 1 return result if __name__ == "__main__" : import doctest doctest . testmod () If you run example.py directly from the command line, doctest works its magic: $ python example.py $... - https://man.mtool.work/python/3.14/library/doctest.html
- traceback --- スタックトレースの表示または取得 — Python 3.14.8 ドキュメント 9110
- ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » The Python standard library » Python ランタイムサービス » traceback --- スタックトレースの表示または取得 テーマ 自動 ライト ダーク | traceback --- スタックトレー
...__ ))) print ( "*** tb_lineno:" , exc . __traceback__ . tb_lineno ) この例の出力は次のようになります: *** print_tb: File "<doctest...>", line 10, in <module> lumberjack() ~~~~~~~~~~^^ *** print_exception: Traceback (most recent call last): File "<doctes...t...>", 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 bright_side_of_life() ~~~~... - https://man.mtool.work/python/3.14/library/traceback.html
- traceback --- スタックトレースの表示または取得 — Python 3.14.8 ドキュメント 9110
- ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » The Python standard library » Python ランタイムサービス » traceback --- スタックトレースの表示または取得 テーマ 自動 ライト ダーク | traceback --- スタックトレー
...__ ))) print ( "*** tb_lineno:" , exc . __traceback__ . tb_lineno ) この例の出力は次のようになります: *** print_tb: File "<doctest...>", line 10, in <module> lumberjack() ~~~~~~~~~~^^ *** print_exception: Traceback (most recent call last): File "<doctes...t...>", 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 bright_side_of_life() ~~~~... - https://man.mtool.work/python/3.14/library/traceback.html
- 索引 — Python 3.14.8 ドキュメント 8373
- ナビゲーション 索引 モジュール | Python » 3.14.8 Documentation » 索引 テーマ 自動 ライト ダーク | Index – D D_FMT (locale モジュール) D_T_FMT (locale モジュール) daemon (multiprocessing.Process の属性) (threading.Thread の属性) daemon_threa
...debug (pdb command) DEBUG (re モジュール) debug (shlex.shlex の属性) (sys.flags の属性) (zipfile.ZipFile の属性) debug() (doctest モジュール) (logging モジュール) (logging.Logger のメソッド) (tkinter.Text のメソッド) (unittest.TestCase のメソッド) (uni...hinery モジュール) DEBUG_COLLECTABLE (gc モジュール) DEBUG_LEAK (gc モジュール) DEBUG_SAVEALL (gc モジュール) debug_src() (doctest モジュール) DEBUG_STATS (gc モジュール) DEBUG_UNCOLLECTABLE (gc モジュール) debugger , [1] , [2] , [3] 設定 ファイル debug...level (http.client.HTTPResponse の属性) DebugRunner (doctest のクラス) DECEMBER (calendar モジュール) decimal module Decimal (decimal のクラス) decimal() (unicodedata モジュール) Deci... - https://man.mtool.work/python/3.14/genindex-D.html
- 索引 — Python 3.14.8 ドキュメント 8373
- ナビゲーション 索引 モジュール | Python » 3.14.8 Documentation » 索引 テーマ 自動 ライト ダーク | Index – D D_FMT (locale モジュール) D_T_FMT (locale モジュール) daemon (multiprocessing.Process の属性) (threading.Thread の属性) daemon_threa
...debug (pdb command) DEBUG (re モジュール) debug (shlex.shlex の属性) (sys.flags の属性) (zipfile.ZipFile の属性) debug() (doctest モジュール) (logging モジュール) (logging.Logger のメソッド) (tkinter.Text のメソッド) (unittest.TestCase のメソッド) (uni...hinery モジュール) DEBUG_COLLECTABLE (gc モジュール) DEBUG_LEAK (gc モジュール) DEBUG_SAVEALL (gc モジュール) debug_src() (doctest モジュール) DEBUG_STATS (gc モジュール) DEBUG_UNCOLLECTABLE (gc モジュール) debugger , [1] , [2] , [3] 設定 ファイル debug...level (http.client.HTTPResponse の属性) DebugRunner (doctest のクラス) DECEMBER (calendar モジュール) decimal module Decimal (decimal のクラス) decimal() (unicodedata モジュール) Deci... - https://man.mtool.work/python/3.14/genindex-D.html
- 索引 — Python 3.14.8 ドキュメント 8281
- ナビゲーション 索引 モジュール | Python » 3.14.8 Documentation » 索引 テーマ 自動 ライト ダーク | 索引 記号 | _ | A | B | C | D | E | F | G | H | I | J | K | L | M | N | O | P | Q | R | S | T | U | V | W | X | Y | Z | イ | エ | オ | カ | キ
...ing ! formatted string literal ! patterns != operator , [1] " (double quote) 文字列リテラル """ 文字列リテラル # (hash) in doctests in printf-style formatting , [1] in regular expressions source encoding declaration コメント , [1] , [2] 文字列のフォーマ...gnment *+ in regular expressions *= augmented assignment *? in regular expressions + (プラス記号) argparse モジュール内 in doctests in printf-style formatting , [1] in regular expressions 二項演算子 , [1] 単項演算子 , [1] 文字列のフォーマットで ++ in re...idle コマンドラインオプション python--m-py_compile コマンドラインオプション - (負符号) glob 形式のワイルドカード , [1] in doctests in printf-style formatting , [1] in regular expressions 二項演算子 , [1] 単項演算子 , [1] 文字列のフォーマットで --altins... - https://man.mtool.work/python/3.14/genindex-all.html
- 索引 — Python 3.14.8 ドキュメント 7306
- ナビゲーション 索引 モジュール | Python » 3.14.8 Documentation » 索引 テーマ 自動 ライト ダーク | Index – R r" raw string literal r' raw string literal R_OK (os モジュール) race condition radians() (math モジュール) (turtle モジュール) Radi
...mlrpc.server.SimpleXMLRPCServer のメソッド) register_namespace() (xml.etree.ElementTree モジュール) register_optionflag() (doctest モジュール) register_shape() (turtle モジュール) register_unpack_format() (shutil モジュール) registerDOMImplementation()...ircmp のメソッド) (modulefinder.ModuleFinder のメソッド) report_callback_exception() (tkinter.Tk のメソッド) REPORT_CDIFF (doctest モジュール) REPORT_ERRMODE (msvcrt モジュール) report_failure() (doctest.DocTestRunner のメソッド) report_full_closure() (...filecmp.dircmp のメソッド) REPORT_NDIFF (doctest モジュール) REPORT_ONLY_FIRST_FAILURE (doctest モジュール) report_partial_closure() (filecmp.dircmp のメソッド) report_sta... - https://man.mtool.work/python/3.14/genindex-R.html
- 索引 — Python 3.14.8 ドキュメント 7306
- ナビゲーション 索引 モジュール | Python » 3.14.8 Documentation » 索引 テーマ 自動 ライト ダーク | Index – R r" raw string literal r' raw string literal R_OK (os モジュール) race condition radians() (math モジュール) (turtle モジュール) Radi
...mlrpc.server.SimpleXMLRPCServer のメソッド) register_namespace() (xml.etree.ElementTree モジュール) register_optionflag() (doctest モジュール) register_shape() (turtle モジュール) register_unpack_format() (shutil モジュール) registerDOMImplementation()...ircmp のメソッド) (modulefinder.ModuleFinder のメソッド) report_callback_exception() (tkinter.Tk のメソッド) REPORT_CDIFF (doctest モジュール) REPORT_ERRMODE (msvcrt モジュール) report_failure() (doctest.DocTestRunner のメソッド) report_full_closure() (...filecmp.dircmp のメソッド) REPORT_NDIFF (doctest モジュール) REPORT_ONLY_FIRST_FAILURE (doctest モジュール) report_partial_closure() (filecmp.dircmp のメソッド) report_sta... - https://man.mtool.work/python/3.14/genindex-R.html
- 開発ツール — Python 3.14.8 ドキュメント 7214
- ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » The Python standard library » 開発ツール テーマ 自動 ライト ダーク | 開発ツール ¶ この章で紹介されるモジュールはソフトウェアを書くことを支援します。たとえば、 py
...doc モジュールはモジュールの内容からドキュメントを生成します。 doctest と unittest モジュールでは、自動的に実行して予想通りの出力が生成されるか確認するユニットテストを書くことができます。 この章...とオンラインヘルプシステム Python 開発モード Python 開発モードの影響 ResourceWarning の例 Bad file descriptor error example doctest --- 対話型の Python の例をテストする 簡単な利用法: docstring 中の実行例をチェックする 簡単な利用法: テキストファイル中の実...行例をチェックする コマンドラインでの使用 doctest のからくり どの docstring が検証されるのか? docstring 内の実行例をどのように認識するのか? 実行コンテキストとは何か? 例外は... - https://man.mtool.work/python/3.14/library/development.html