per page, with , order by , clip by
Results of 1 - 10 of about 51 for thing (0.009 sec.)
unittest.mock --- モックオブジェクトライブラリ — Python 3.14.8 ドキュメント 14432
ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » The Python standard library » 開発ツール » unittest.mock --- モックオブジェクトライブラリ テーマ 自動 ライト ダーク | unittest.mock --- モックオブジェクトライブラ ... ock および MagicMock を設定でき、どのよう使用されたかについてアサートできます: >>> from unittest.mock import MagicMock >>> thing = ProductionClass () >>> thing . method = MagicMock ( return_value = 3 ) >>> thing . method ( 3 , 4 , 5 , key = 'value' ) ... 3 >>> thing . method . assert_called_with ( 3 , 4 , 5 , key = 'value' ) side_effect によって、モック呼び出し時の例外発生などの副作用を ... ジャーとして使用できます: >>> with patch . object ( ProductionClass , 'method' , return_value = None ) as mock_method : ... thing = ProductionClass () ... thing . method ( 1 , 2 , 3 ) ... >>> mock_method . assert_called_once_with ( 1 , 2 , 3 ) また、 p ...
https://man.mtool.work/python/3.14/library/unittest.mock.html
unittest.mock --- モックオブジェクトライブラリ — Python 3.14.8 ドキュメント 14252
ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » The Python standard library » 開発ツール » unittest.mock --- モックオブジェクトライブラリ テーマ 自動 ライト ダーク | unittest.mock --- モックオブジェクトライブラ ... ock および MagicMock を設定でき、どのよう使用されたかについてアサートできます: >>> from unittest.mock import MagicMock >>> thing = ProductionClass () >>> thing . method = MagicMock ( return_value = 3 ) >>> thing . method ( 3 , 4 , 5 , key = 'value' ) ... 3 >>> thing . method . assert_called_with ( 3 , 4 , 5 , key = 'value' ) side_effect によって、モック呼び出し時の例外発生などの副作用を ... ジャーとして使用できます: >>> with patch . object ( ProductionClass , 'method' , return_value = None ) as mock_method : ... thing = ProductionClass () ... thing . method ( 1 , 2 , 3 ) ... >>> mock_method . assert_called_once_with ( 1 , 2 , 3 ) また、 p ...
https://man.mtool.work/python/3.14/library/unittest.mock.html
contextlib --- with 文コンテキスト用ユーティリティ — Python 3.14.8 ドキュメント 9501
ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » The Python standard library » Python ランタイムサービス » contextlib --- with 文コンテキスト用ユーティリティ テーマ 自動 ライト ダーク | contextlib --- with 文コ ... ョン 3.10 で変更: Async context managers created with @asynccontextmanager can be used as decorators. contextlib. closing ( thing ) ¶ ブロックの完了時に thing を close するコンテキストマネージャを返します。これは基本的に以下と等価です: from contextlib ... import contextmanager @contextmanager def closing ( thing ): try : yield thing finally : thing . close () そして、明示的に page を close する必要なしに、次のように書くことができます ... 出るときに page.close() が呼ばれます。 注釈 Most types managing resources support the context manager protocol, which closes thing on leaving the with statement. As such, closing() is most useful for third party types that don't support context managers ...
https://man.mtool.work/python/3.14/library/contextlib.html
contextlib --- with 文コンテキスト用ユーティリティ — Python 3.14.8 ドキュメント 9501
ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » The Python standard library » Python ランタイムサービス » contextlib --- with 文コンテキスト用ユーティリティ テーマ 自動 ライト ダーク | contextlib --- with 文コ ... ョン 3.10 で変更: Async context managers created with @asynccontextmanager can be used as decorators. contextlib. closing ( thing ) ¶ ブロックの完了時に thing を close するコンテキストマネージャを返します。これは基本的に以下と等価です: from contextlib ... import contextmanager @contextmanager def closing ( thing ): try : yield thing finally : thing . close () そして、明示的に page を close する必要なしに、次のように書くことができます ... 出るときに page.close() が呼ばれます。 注釈 Most types managing resources support the context manager protocol, which closes thing on leaving the with statement. As such, closing() is most useful for third party types that don't support context managers ...
https://man.mtool.work/python/3.14/library/contextlib.html
tkinter.scrolledtext --- Scrolled text widget — Python 3.14.8 ドキュメント 8452
ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » The Python standard library » Graphical user interfaces with Tk » tkinter.scrolledtext --- Scrolled text widget テーマ 自動 ライト ダーク | tkinter.scrolledtext ... a class of the same name which implements a basic text widget which has a vertical scroll bar configured to do the "right thing." Using the ScrolledText class is a lot easier than setting up a text widget and scroll bar directly. The text widget and ... ectly Frame geometry スクロールバーウィジェット Scrolled ソースコード module provides implements vertical configured right thing Using easier setting scrollbar packed together 前のトピックへ tkinter.messagebox --- Tkinter メッセージプロンプト 次のトピ ...
https://man.mtool.work/python/3.14/library/tkinter.scrolledtext.html
unittest.mock --- 入門 — Python 3.14.8 ドキュメント 7883
ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » The Python standard library » 開発ツール » unittest.mock --- 入門 テーマ 自動 ライト ダーク | unittest.mock --- 入門 ¶ Added in version 3.3. Mock を使う ¶ Mock p ... ソッドを使ってそのメソッドが正しい引数で呼び出されたかどうかをチェックできます。 次の例では ProductionClass().method が something メソッドを呼び出したことをテストしています: >>> class ProductionClass : ... def method ( self ): ... self . something ( 1 ... , 2 , 3 ) ... def something ( self , a , b , c ): ... pass ... >>> real = ProductionClass () >>> real . something = MagicMock () >>> real . method () ... >>> real . something . assert_called_once_with ( 1 , 2 , 3 ) Mock for method calls on an object ¶ 上の例ではオブジェクトのメソッドに対して直接パ ...
https://man.mtool.work/python/3.14/library/unittest.mock-examples.html
unittest.mock --- 入門 — Python 3.14.8 ドキュメント 7883
ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » The Python standard library » 開発ツール » unittest.mock --- 入門 テーマ 自動 ライト ダーク | unittest.mock --- 入門 ¶ Added in version 3.3. Mock を使う ¶ Mock p ... ソッドを使ってそのメソッドが正しい引数で呼び出されたかどうかをチェックできます。 次の例では ProductionClass().method が something メソッドを呼び出したことをテストしています: >>> class ProductionClass : ... def method ( self ): ... self . something ( 1 ... , 2 , 3 ) ... def something ( self , a , b , c ): ... pass ... >>> real = ProductionClass () >>> real . something = MagicMock () >>> real . method () ... >>> real . something . assert_called_once_with ( 1 , 2 , 3 ) Mock for method calls on an object ¶ 上の例ではオブジェクトのメソッドに対して直接パ ...
https://man.mtool.work/python/3.14/library/unittest.mock-examples.html
A Conceptual Overview of asyncio — Python 3.14.8 ドキュメント 7688
ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » Python HOWTO » A Conceptual Overview of asyncio テーマ 自動 ライト ダーク | A Conceptual Overview of asyncio ¶ This HOWTO article seeks to help you build a sturd ... building blocks of asyncio : the event loop, coroutine functions, coroutine objects, tasks, and await . Event Loop ¶ Everything in asyncio happens relative to the event loop. It's the star of the show. It's like an orchestra conductor. It's behind th ... e scenes managing resources. Some power is explicitly granted to it, but a lot of its ability to get things done comes from the respect and cooperation of its worker bees. In more technical terms, the event loop contains a collec ... , many async programs follow this setup: import asyncio async def main (): # Perform all sorts of wacky, wild asynchronous things... ... if __name__ == "__main__" : asyncio . run ( main ()) # The program will not reach the following print statement un ...
https://man.mtool.work/python/3.14/howto/a-conceptual-overview-of-asyncio.html
A Conceptual Overview of asyncio — Python 3.14.8 ドキュメント 7688
ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » Python HOWTO » A Conceptual Overview of asyncio テーマ 自動 ライト ダーク | A Conceptual Overview of asyncio ¶ This HOWTO article seeks to help you build a sturd ... building blocks of asyncio : the event loop, coroutine functions, coroutine objects, tasks, and await . Event Loop ¶ Everything in asyncio happens relative to the event loop. It's the star of the show. It's like an orchestra conductor. It's behind th ... e scenes managing resources. Some power is explicitly granted to it, but a lot of its ability to get things done comes from the respect and cooperation of its worker bees. In more technical terms, the event loop contains a collec ... , many async programs follow this setup: import asyncio async def main (): # Perform all sorts of wacky, wild asynchronous things... ... if __name__ == "__main__" : asyncio . run ( main ()) # The program will not reach the following print statement un ...
https://man.mtool.work/python/3.14/howto/a-conceptual-overview-of-asyncio.html
tkinter.scrolledtext --- Scrolled text widget — Python 3.14.8 ドキュメント 7598
ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » The Python standard library » Graphical user interfaces with Tk » tkinter.scrolledtext --- Scrolled text widget テーマ 自動 ライト ダーク | tkinter.scrolledtext ... a class of the same name which implements a basic text widget which has a vertical scroll bar configured to do the "right thing." Using the ScrolledText class is a lot easier than setting up a text widget and scroll bar directly. The text widget and ...
https://man.mtool.work/python/3.14/library/tkinter.scrolledtext.html
PREV 1 2 3 4 5 6 NEXT