per page, with , order by , clip by
Results of 1 - 10 of about 108 for docstring (0.032 sec.)
doctest --- 対話型の Python の例をテストする — Python 3.14.8 ドキュメント 15080
ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » The Python standard library » 開発ツール » doctest --- 対話型の Python の例をテストする テーマ 自動 ライト ダーク | doctest --- 対話型の Python の例をテストする ... cutes those sessions to verify that they work exactly as shown. There are several common ways to use doctest: モジュールの docstring (ドキュメンテーション文字列) 中にある対話実行例のすべてが書かれている通りに動作するか検証することで、docstring の内容が最新 ... . Added in version 3.13: Output is colorized by default and can be controlled using environment variables . 簡単な利用法: docstring 中の実行例をチェックする ¶ doctest を試す簡単な方法 (とはいえ、いつもそうする必要はないのですが) は、各モジュール M の最後 ... ようにして締めくくることです: if __name__ == "__main__" : import doctest doctest . testmod () こうすると、 doctest は M 中の docstring を検査します。 モジュールをスクリプトとして実行すると、docstring 中の実行例が実行され、検証されます: python M . py docstri ...
https://man.mtool.work/python/3.14/library/doctest.html
doctest --- 対話型の Python の例をテストする — Python 3.14.8 ドキュメント 15080
ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » The Python standard library » 開発ツール » doctest --- 対話型の Python の例をテストする テーマ 自動 ライト ダーク | doctest --- 対話型の Python の例をテストする ... cutes those sessions to verify that they work exactly as shown. There are several common ways to use doctest: モジュールの docstring (ドキュメンテーション文字列) 中にある対話実行例のすべてが書かれている通りに動作するか検証することで、docstring の内容が最新 ... . Added in version 3.13: Output is colorized by default and can be controlled using environment variables . 簡単な利用法: docstring 中の実行例をチェックする ¶ doctest を試す簡単な方法 (とはいえ、いつもそうする必要はないのですが) は、各モジュール M の最後 ... ようにして締めくくることです: if __name__ == "__main__" : import doctest doctest . testmod () こうすると、 doctest は M 中の docstring を検査します。 モジュールをスクリプトとして実行すると、docstring 中の実行例が実行され、検証されます: python M . py docstri ...
https://man.mtool.work/python/3.14/library/doctest.html
開発ツール — Python 3.14.8 ドキュメント 8075
ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » The Python standard library » 開発ツール テーマ 自動 ライト ダーク | 開発ツール ¶ この章で紹介されるモジュールはソフトウェアを書くことを支援します。たとえば、 py ... ードの影響 ResourceWarning の例 Bad file descriptor error example doctest --- 対話型の Python の例をテストする 簡単な利用法: docstring 中の実行例をチェックする 簡単な利用法: テキストファイル中の実行例をチェックする コマンドラインでの使用 doctest のからくり ... どの docstring が検証されるのか? docstring 内の実行例をどのように認識するのか? 実行コンテキストとは何か? 例外はどう扱えばよいか? オプショ ... s support Aliases Mock patch Utilities helper ABCs unittest types collections コマンドライン mock 属性 パッチ 開発 doctest docstring チェック method call side effect return 前のトピックへ turtle --- Turtle graphics 次のトピックへ typing --- 型ヒントのサポ ...
https://man.mtool.work/python/3.14/library/development.html
変更履歴 — Python 3.14.8 ドキュメント 7667
ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » What's New in Python » 変更履歴 テーマ 自動 ライト ダーク | 変更履歴 ¶ Python next ¶ Release date: XXXX-XX-XX セキュリティ ¶ gh-157265 : In tarfile , when extrac ... gh-156988 : asyncio.print_call_graph() no longer truncates the call stack at a synchronous generator. gh-156970 : Set the docstring of unittest.mock.Mock.return_value . gh-156946 : Fix a crash in curses.panel when the finalizer of a panel's user pointer ... k is now discarded from every future's awaited_by set once wait() returns, even for pending futures. gh-78335 : Update the docstrings of tkinter and tkinter.ttk widget classes to list all supported widget options, including options added in Tk 9.0 and 9.1 ... p437 and then re-stored as UTF-8. gh-149816 : Fix race condition in ssl.SSLContext.sni_callback gh-149995 : Update various docstrings in typing . gh-88726 : The email package now uses standard MIME charset names "gb2312" and "big5" instead of non-standard ...
https://man.mtool.work/python/3.14/whatsnew/changelog.html
10. Brief tour of the standard library — Python 3.14.8 ドキュメント 7667
ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » Python チュートリアル » 10. Brief tour of the standard library テーマ 自動 ライト ダーク | 10. Brief tour of the standard library ¶ 10.1. Operating system interf ... 操作上の助けになります: >>> import os >>> dir ( os ) <OSモジュールの関数すべてのリストを返す> >>> help ( os ) <モジュールの docstring から生成された詳細なマニュアルを返す> For daily file and directory management tasks, the shutil module provides a higher-l ... にテストを書き、開発の過程で頻繁にテストを走らせるというものです。 doctest モジュールでは、モジュールを検索してプログラムの docstring に埋め込まれたテストの評価を行うためのツールを提供しています。テストの作り方は単純で、典型的な呼び出し例とその結果を docst ... る。 >>> print(average([20, 30, 70])) 40.0 """ return sum ( values ) / len ( values ) import doctest doctest . testmod () # docstring に埋め込まれたテストを自動的に評価 unittest モジュールは doctest モジュールほど気楽に使えるものではありませんが、より網羅的 ...
https://man.mtool.work/python/3.14/tutorial/stdlib.html
開発ツール — Python 3.14.8 ドキュメント 7463
ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » The Python standard library » 開発ツール テーマ 自動 ライト ダーク | 開発ツール ¶ この章で紹介されるモジュールはソフトウェアを書くことを支援します。たとえば、 py ... ードの影響 ResourceWarning の例 Bad file descriptor error example doctest --- 対話型の Python の例をテストする 簡単な利用法: docstring 中の実行例をチェックする 簡単な利用法: テキストファイル中の実行例をチェックする コマンドラインでの使用 doctest のからくり ... どの docstring が検証されるのか? docstring 内の実行例をどのように認識するのか? 実行コンテキストとは何か? 例外はどう扱えばよいか? オプショ ...
https://man.mtool.work/python/3.14/library/development.html
pydoc --- ドキュメント生成とオンラインヘルプシステム — Python 3.14.8 ドキュメン... 7361
ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » The Python standard library » 開発ツール » pydoc --- ドキュメント生成とオンラインヘルプシステム テーマ 自動 ライト ダーク | pydoc --- ドキュメント生成とオンライン ... wser, or saved to HTML files. For modules, classes, functions and methods, the displayed documentation is derived from the docstring (i.e. the __doc__ attribute) of the object, and recursively of its documentable members. If there is no docstring, pydoc t ... キュメント documentation 起動 サーバー module modules text console inspect interpreter Unix 概要 ポート ホスト ヘルプ pages docstring help uses running script パッケージ code output 前のトピックへ typing --- 型ヒントのサポート 次のトピックへ Python 開発モー ...
https://man.mtool.work/python/3.14/library/pydoc.html
モジュールオブジェクト (module object) — Python 3.14.8 ドキュメント 7259
ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » Python/C API reference manual » 具象オブジェクト (concrete object) レイヤ » モジュールオブジェクト (module object) テーマ 自動 ライト ダーク | モジュールオブジェ ... ways initialize this member to PyModuleDef_HEAD_INIT . const char * m_name ¶ Name for the new module. const char * m_doc ¶ Docstring for the module; usually a docstring variable created with PyDoc_STRVAR is used. Py_ssize_t m_size ¶ Module state may be ke ... must be statically allocated (or otherwise guaranteed to outlive the module object). Added in version 3.5. int PyModule_SetDocString ( PyObject * module , const char * docstring ) ¶ 次に属します: Stable ABI (バージョン 3.7 より). Set the docstring for mod ... ule to docstring . This function is called automatically when creating a module from PyModuleDef (such as when using 多段階初期化 , PyModul ...
https://man.mtool.work/python/3.14/c-api/module.html
10. Brief tour of the standard library — Python 3.14.8 ドキュメント 7259
ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » Python チュートリアル » 10. Brief tour of the standard library テーマ 自動 ライト ダーク | 10. Brief tour of the standard library ¶ 10.1. Operating system interf ... 操作上の助けになります: >>> import os >>> dir ( os ) <OSモジュールの関数すべてのリストを返す> >>> help ( os ) <モジュールの docstring から生成された詳細なマニュアルを返す> For daily file and directory management tasks, the shutil module provides a higher-l ... にテストを書き、開発の過程で頻繁にテストを走らせるというものです。 doctest モジュールでは、モジュールを検索してプログラムの docstring に埋め込まれたテストの評価を行うためのツールを提供しています。テストの作り方は単純で、典型的な呼び出し例とその結果を docst ... る。 >>> print(average([20, 30, 70])) 40.0 """ return sum ( values ) / len ( values ) import doctest doctest . testmod () # docstring に埋め込まれたテストを自動的に評価 unittest モジュールは doctest モジュールほど気楽に使えるものではありませんが、より網羅的 ...
https://man.mtool.work/python/3.14/tutorial/stdlib.html
モジュールオブジェクト (module object) — Python 3.14.8 ドキュメント 7259
ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » Python/C API reference manual » 具象オブジェクト (concrete object) レイヤ » モジュールオブジェクト (module object) テーマ 自動 ライト ダーク | モジュールオブジェ ... ways initialize this member to PyModuleDef_HEAD_INIT . const char * m_name ¶ Name for the new module. const char * m_doc ¶ Docstring for the module; usually a docstring variable created with PyDoc_STRVAR is used. Py_ssize_t m_size ¶ Module state may be ke ... must be statically allocated (or otherwise guaranteed to outlive the module object). Added in version 3.5. int PyModule_SetDocString ( PyObject * module , const char * docstring ) ¶ 次に属します: Stable ABI (バージョン 3.7 より). Set the docstring for mod ... ule to docstring . This function is called automatically when creating a module from PyModuleDef (such as when using 多段階初期化 , PyModul ...
https://man.mtool.work/python/3.14/c-api/module.html
PREV 1 2 3 4 5 6 7 8 9 10 NEXT