Results of 1 - 10 of about 281 for calls (0.036 sec.)
- unittest.mock --- 入門 — Python 3.14.8 ドキュメント 11569
- ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » The Python standard library » 開発ツール » unittest.mock --- 入門 テーマ 自動 ライト ダーク | unittest.mock --- 入門 ¶ Added in version 3.3. Mock を使う ¶ Mock p
...something = MagicMock () >>> real . method () >>> real . something . assert_called_once_with ( 1 , 2 , 3 ) Mock for method calls on an object ¶ 上の例ではオブジェクトのメソッドに対して直接パッチを当てて、それが正しく呼び出されていたかどうかをテストして...e = 'foo' ) >>> mock <MagicMock name='foo' id='...'> >>> mock . method <MagicMock name='foo.method' id='...'> Tracking all calls ¶ メソッドの複数回の呼び出しをトラックしたいことがあります。 mock_calls 属性は、そのモックの子属性やさらにその子孫に対する...d='...'> >>> mock . attribute . method ( 10 , x = 53 ) <MagicMock name='mock.attribute.method()' id='...'> >>> mock . mock_calls [call.method(), call.attribute.method(10, x=53)] mock_calls に対して assert すると、予期していないメソッド呼び出しがあった... - https://man.mtool.work/python/3.14/library/unittest.mock-examples.html
- unittest.mock --- 入門 — Python 3.14.8 ドキュメント 11569
- ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » The Python standard library » 開発ツール » unittest.mock --- 入門 テーマ 自動 ライト ダーク | unittest.mock --- 入門 ¶ Added in version 3.3. Mock を使う ¶ Mock p
...something = MagicMock () >>> real . method () >>> real . something . assert_called_once_with ( 1 , 2 , 3 ) Mock for method calls on an object ¶ 上の例ではオブジェクトのメソッドに対して直接パッチを当てて、それが正しく呼び出されていたかどうかをテストして...e = 'foo' ) >>> mock <MagicMock name='foo' id='...'> >>> mock . method <MagicMock name='foo.method' id='...'> Tracking all calls ¶ メソッドの複数回の呼び出しをトラックしたいことがあります。 mock_calls 属性は、そのモックの子属性やさらにその子孫に対する...d='...'> >>> mock . attribute . method ( 10 , x = 53 ) <MagicMock name='mock.attribute.method()' id='...'> >>> mock . mock_calls [call.method(), call.attribute.method(10, x=53)] mock_calls に対して assert すると、予期していないメソッド呼び出しがあった... - https://man.mtool.work/python/3.14/library/unittest.mock-examples.html
- unittest.mock --- モックオブジェクトライブラリ — Python 3.14.8 ドキュメント 10410
- ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » The Python standard library » 開発ツール » unittest.mock --- モックオブジェクトライブラリ テーマ 自動 ライト ダーク | unittest.mock --- モックオブジェクトライブラ
...nce () Traceback (most recent call last): ... AssertionError : Expected 'method' to have been called once. Called 2 times. Calls: [call(), call()]. Added in version 3.6. assert_called_with ( * args , ** kwargs ) ¶ This method is a convenient way of as...ar = 'values' ) Traceback (most recent call last): ... AssertionError : Expected 'mock' to be called once. Called 2 times. Calls: [call('foo', bar='baz'), call('other', bar='values')]. assert_any_call ( * args , ** kwargs ) ¶ assert the mock has been...2 , arg = 'thing' ) >>> mock ( 'some' , 'thing' , 'else' ) >>> mock . assert_any_call ( 1 , 2 , arg = 'thing' ) assert_has_calls ( calls , any_order = False ) ¶ assert the mock has been called with the specified calls. The mock_calls list is checked f... - https://man.mtool.work/python/3.14/library/unittest.mock.html
- unittest.mock --- モックオブジェクトライブラリ — Python 3.14.8 ドキュメント 10410
- ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » The Python standard library » 開発ツール » unittest.mock --- モックオブジェクトライブラリ テーマ 自動 ライト ダーク | unittest.mock --- モックオブジェクトライブラ
...nce () Traceback (most recent call last): ... AssertionError : Expected 'method' to have been called once. Called 2 times. Calls: [call(), call()]. Added in version 3.6. assert_called_with ( * args , ** kwargs ) ¶ This method is a convenient way of as...ar = 'values' ) Traceback (most recent call last): ... AssertionError : Expected 'mock' to be called once. Called 2 times. Calls: [call('foo', bar='baz'), call('other', bar='values')]. assert_any_call ( * args , ** kwargs ) ¶ assert the mock has been...2 , arg = 'thing' ) >>> mock ( 'some' , 'thing' , 'else' ) >>> mock . assert_any_call ( 1 , 2 , arg = 'thing' ) assert_has_calls ( calls , any_order = False ) ¶ assert the mock has been called with the specified calls. The mock_calls list is checked f... - https://man.mtool.work/python/3.14/library/unittest.mock.html
- 変更履歴 — Python 3.14.8 ドキュメント 9976
- ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » What's New in Python » 変更履歴 テーマ 自動 ライト ダーク | 変更履歴 ¶ Python next ¶ Release date: XXXX-XX-XX セキュリティ ¶ gh-157265 : In tarfile , when extrac
...by Tk as a Tcl object, for example by ttk.Style.lookup() . 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 cras...in the IDLE Settings dialog is blanked with the Backspace key. gh-74112 : Ctrl-C in the IDLE Shell now interrupts blocking calls such as time.sleep() and socket.recv . gh-151471 : Colorize the soft keyword type in IDLE. gh-103089 : IDLE no longer hang...GenericAlias __parameters__ initialization on free-threading builds. gh-153205 : Fix a potential SystemError during vector calls when memory allocation fails. A MemoryError is now raised instead. gh-152682 : Fix NULL pointer dereference in compile() w... - https://man.mtool.work/python/3.14/whatsnew/changelog.html
- readline --- GNU readline のインターフェース — Python 3.14.8 ドキュメント 7890
- ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » The Python standard library » テキスト処理サービス » readline --- GNU readline のインターフェース テーマ 自動 ライト ダーク | readline --- GNU readline のインター
...ユーザ設定関連のものです: readline. parse_and_bind ( string ) ¶ Execute the init line provided in the string argument. This calls rl_parse_and_bind() in the underlying library. readline. read_init_file ( [ filename ] ) ¶ Execute a readline initializati...on file. The default filename is the last filename used. This calls rl_read_init_file() in the underlying library. It raises an auditing event open with the file name if given, and "<readlin...the underlying library). readline. insert_text ( string ) ¶ Insert text into the line buffer at the cursor position. This calls rl_insert_text() in the underlying library, but ignores the return value. readline. redisplay ( ) ¶ Change what's displaye... - https://man.mtool.work/python/3.14/library/readline.html
- readline --- GNU readline のインターフェース — Python 3.14.8 ドキュメント 7890
- ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » The Python standard library » テキスト処理サービス » readline --- GNU readline のインターフェース テーマ 自動 ライト ダーク | readline --- GNU readline のインター
...ユーザ設定関連のものです: readline. parse_and_bind ( string ) ¶ Execute the init line provided in the string argument. This calls rl_parse_and_bind() in the underlying library. readline. read_init_file ( [ filename ] ) ¶ Execute a readline initializati...on file. The default filename is the last filename used. This calls rl_read_init_file() in the underlying library. It raises an auditing event open with the file name if given, and "<readlin...the underlying library). readline. insert_text ( string ) ¶ Insert text into the line buffer at the cursor position. This calls rl_insert_text() in the underlying library, but ignores the return value. readline. redisplay ( ) ¶ Change what's displaye... - https://man.mtool.work/python/3.14/library/readline.html
- The Python Profilers — Python 3.14.8 ドキュメント 7156
- ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » The Python standard library » Debugging and Profiling » The Python Profilers テーマ 自動 ライト ダーク | The Python Profilers ¶ Source code: Lib/profile.py and L
...ilable on your system.) The above action would run re.compile() and print profile results like the following: 214 function calls ( 207 primitive calls ) in 0.002 seconds Ordered by : cumulative time ncalls tottime percall cumtime percall filename : li...ompiler . py : 598 ( _code ) 1 0.000 0.000 0.000 0.000 _parser . py : 435 ( _parse_sub ) The first line indicates that 214 calls were monitored. Of those calls, 207 were primitive , meaning that the call was not induced via recursion. The next line: O...rdered by: cumulative time indicates the output is sorted by the cumtime values. The column headings include: ncalls for the number of calls. tottime for the total time spent in the given function (and excluding time made in calls to sub-f... - https://man.mtool.work/python/3.14/library/profile.html
- The Python Profilers — Python 3.14.8 ドキュメント 7156
- ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » The Python standard library » Debugging and Profiling » The Python Profilers テーマ 自動 ライト ダーク | The Python Profilers ¶ Source code: Lib/profile.py and L
...ilable on your system.) The above action would run re.compile() and print profile results like the following: 214 function calls ( 207 primitive calls ) in 0.002 seconds Ordered by : cumulative time ncalls tottime percall cumtime percall filename : li...ompiler . py : 598 ( _code ) 1 0.000 0.000 0.000 0.000 _parser . py : 435 ( _parse_sub ) The first line indicates that 214 calls were monitored. Of those calls, 207 were primitive , meaning that the call was not induced via recursion. The next line: O...rdered by: cumulative time indicates the output is sorted by the cumtime values. The column headings include: ncalls for the number of calls. tottime for the total time spent in the given function (and excluding time made in calls to sub-f... - https://man.mtool.work/python/3.14/library/profile.html
- Object Life Cycle — Python 3.14.8 ドキュメント 6296
- ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » Python/C API reference manual » オブジェクト実装サポート (object implementation support) » Object Life Cycle テーマ 自動 ライト ダーク | Object Life Cycle ¶ This
...reference count reaches zero. tp_dealloc is called to destroy the object. To avoid code duplication, tp_dealloc typically calls into tp_clear to free up the object's references. When tp_dealloc finishes object destruction, it directly calls tp_free (...e Py_TPFLAGS_HAVE_GC flag is set in tp_flags ), the following events are also possible: The garbage collector occasionally calls tp_traverse to identify cyclic isolates . When the garbage collector discovers a cyclic isolate , it finalizes one of the...will finish before others. A finalized object must be able to tolerate the clearing of a subset of its referents. PEP 442 calls this stage "cyclic trash". Leaked: If a cyclic isolate still exists after all objects in the group have been finalized and... - https://man.mtool.work/python/3.14/c-api/lifecycle.html