Results of 1 - 10 of about 174 for effect (0.012 sec.)
- unittest.mock --- モックオブジェクトライブラリ — Python 3.14.8 ドキュメント 13366
- ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » The Python standard library » 開発ツール » unittest.mock --- モックオブジェクトライブラリ テーマ 自動 ライト ダーク | unittest.mock --- モックオブジェクトライブラ
...thing . method ( 3 , 4 , 5 , key = 'value' ) 3 >>> thing . method . assert_called_with ( 3 , 4 , 5 , key = 'value' ) side_effect によって、モック呼び出し時の例外発生などの副作用を実行できます: >>> from unittest.mock import Mock >>> mock = Mock ( side_...mock () Traceback (most recent call last): ... KeyError : 'foo' >>> values = { 'a' : 1 , 'b' : 2 , 'c' : 3 } >>> def side_effect ( arg ): ... return values [ arg ] ... >>> mock . side_effect = side_effect >>> mock ( 'a' ), mock ( 'b' ), mock ( 'c' ) (...1, 2, 3) >>> mock . side_effect = [ 5 , 4 , 3 , 2 , 1 ] >>> mock (), mock (), mock () (5, 4, 3) モックには多くの設定法や挙動の制御法があります。例えば spe... - https://man.mtool.work/python/3.14/library/unittest.mock.html
- unittest.mock --- モックオブジェクトライブラリ — Python 3.14.8 ドキュメント 13366
- ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » The Python standard library » 開発ツール » unittest.mock --- モックオブジェクトライブラリ テーマ 自動 ライト ダーク | unittest.mock --- モックオブジェクトライブラ
...thing . method ( 3 , 4 , 5 , key = 'value' ) 3 >>> thing . method . assert_called_with ( 3 , 4 , 5 , key = 'value' ) side_effect によって、モック呼び出し時の例外発生などの副作用を実行できます: >>> from unittest.mock import Mock >>> mock = Mock ( side_...mock () Traceback (most recent call last): ... KeyError : 'foo' >>> values = { 'a' : 1 , 'b' : 2 , 'c' : 3 } >>> def side_effect ( arg ): ... return values [ arg ] ... >>> mock . side_effect = side_effect >>> mock ( 'a' ), mock ( 'b' ), mock ( 'c' ) (...1, 2, 3) >>> mock . side_effect = [ 5 , 4 , 3 , 2 , 1 ] >>> mock (), mock (), mock () (5, 4, 3) モックには多くの設定法や挙動の制御法があります。例えば spe... - https://man.mtool.work/python/3.14/library/unittest.mock.html
- unittest.mock --- 入門 — Python 3.14.8 ドキュメント 10991
- ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » The Python standard library » 開発ツール » unittest.mock --- 入門 テーマ 自動 ライト ダーク | unittest.mock --- 入門 ¶ Added in version 3.3. Mock を使う ¶ Mock p
...cted True call object を chained call を表す list にするために .call_list() を使います。 モックから例外を発生させる ¶ side_effect という便利な属性があります。この属性に例外クラスやそのインスタンスを設定すると、モックが呼ばれた時にその例外を発生させます...。 >>> mock = Mock ( side_effect = Exception ( 'Boom!' )) >>> mock () Traceback (most recent call last): ... Exception : Boom! side_effect の関数と iterabl...e ¶ side_effect には関数や iterable を設定することもできます。 side_effect に iterable を設定するユースケースは、そのモックが複数回呼び出さ... - https://man.mtool.work/python/3.14/library/unittest.mock-examples.html
- unittest.mock --- 入門 — Python 3.14.8 ドキュメント 10991
- ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » The Python standard library » 開発ツール » unittest.mock --- 入門 テーマ 自動 ライト ダーク | unittest.mock --- 入門 ¶ Added in version 3.3. Mock を使う ¶ Mock p
...cted True call object を chained call を表す list にするために .call_list() を使います。 モックから例外を発生させる ¶ side_effect という便利な属性があります。この属性に例外クラスやそのインスタンスを設定すると、モックが呼ばれた時にその例外を発生させます...。 >>> mock = Mock ( side_effect = Exception ( 'Boom!' )) >>> mock () Traceback (most recent call last): ... Exception : Boom! side_effect の関数と iterabl...e ¶ side_effect には関数や iterable を設定することもできます。 side_effect に iterable を設定するユースケースは、そのモックが複数回呼び出さ... - https://man.mtool.work/python/3.14/library/unittest.mock-examples.html
- 参照カウント — Python 3.14.8 ドキュメント 7730
- ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » Python/C API reference manual » 参照カウント テーマ 自動 ライト ダーク | 参照カウント ¶ このセクションにある関数とマクロは、 Python オブジェクトの参照カウントの管
...ってください。 Do not expect this function to actually modify o in any way. For at least some objects , this function has no effect. バージョン 3.12 で変更: 永続オブジェクトは変更されません。 void Py_XINCREF ( PyObject * o ) ¶ Similar to Py_INCREF() , bu...t the object o can be NULL , in which case this has no effect. See also Py_XNewRef() . PyObject * Py_NewRef ( PyObject * o ) ¶ 次に属します: Stable ABI (バージョン 3.10 より). Create a...ってください。 Do not expect this function to actually modify o in any way. For at least some objects , this function has no effect. 警告 The deallocation function can cause arbitrary Python code to be invoked (e.g. when a class instance with a __del__()... - https://man.mtool.work/python/3.14/c-api/refcounting.html
- 参照カウント — Python 3.14.8 ドキュメント 7730
- ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » Python/C API reference manual » 参照カウント テーマ 自動 ライト ダーク | 参照カウント ¶ このセクションにある関数とマクロは、 Python オブジェクトの参照カウントの管
...ってください。 Do not expect this function to actually modify o in any way. For at least some objects , this function has no effect. バージョン 3.12 で変更: 永続オブジェクトは変更されません。 void Py_XINCREF ( PyObject * o ) ¶ Similar to Py_INCREF() , bu...t the object o can be NULL , in which case this has no effect. See also Py_XNewRef() . PyObject * Py_NewRef ( PyObject * o ) ¶ 次に属します: Stable ABI (バージョン 3.10 より). Create a...ってください。 Do not expect this function to actually modify o in any way. For at least some objects , this function has no effect. 警告 The deallocation function can cause arbitrary Python code to be invoked (e.g. when a class instance with a __del__()... - https://man.mtool.work/python/3.14/c-api/refcounting.html
- 超高水準レイヤ — Python 3.14.8 ドキュメント 7349
- ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » Python/C API reference manual » 超高水準レイヤ テーマ 自動 ライト ダーク | 超高水準レイヤ ¶ この章の関数を使うとファイルまたはバッファにある Python ソースコードを
...as known to be UTF-8 encoded. The compile() , eval() and exec() built-in functions set this flag, but it currently has no effect. The " PyCF " flags above can be combined with " CO_FUTURE " flags such as CO_FUTURE_ANNOTATIONS to enable features normal...d code passing its flags to compile() keeps working. Bitmask of flags for obsolete future features that no longer have any effect. PyCF_COMPILE_MASK ¶ Bitmask of all PyCF flags that change how the source is compiled, such as PyCF_ONLY_AST . The compile..." from PEP 484 . This requires the PyCF_ONLY_AST flag to be set. 参考 ast.FunctionType PEP 484 Added in version 3.8. Stack Effects ¶ 参考 dis.stack_effect() PY_INVALID_STACK_EFFECT ¶ Sentinel value representing an invalid stack effect. This is currentl... - https://man.mtool.work/python/3.14/c-api/veryhigh.html
- 超高水準レイヤ — Python 3.14.8 ドキュメント 7349
- ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » Python/C API reference manual » 超高水準レイヤ テーマ 自動 ライト ダーク | 超高水準レイヤ ¶ この章の関数を使うとファイルまたはバッファにある Python ソースコードを
...as known to be UTF-8 encoded. The compile() , eval() and exec() built-in functions set this flag, but it currently has no effect. The " PyCF " flags above can be combined with " CO_FUTURE " flags such as CO_FUTURE_ANNOTATIONS to enable features normal...d code passing its flags to compile() keeps working. Bitmask of flags for obsolete future features that no longer have any effect. PyCF_COMPILE_MASK ¶ Bitmask of all PyCF flags that change how the source is compiled, such as PyCF_ONLY_AST . The compile..." from PEP 484 . This requires the PyCF_ONLY_AST flag to be set. 参考 ast.FunctionType PEP 484 Added in version 3.8. Stack Effects ¶ 参考 dis.stack_effect() PY_INVALID_STACK_EFFECT ¶ Sentinel value representing an invalid stack effect. This is currentl... - https://man.mtool.work/python/3.14/c-api/veryhigh.html
- コードオブジェクト — Python 3.14.8 ドキュメント 7036
- ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » Python/C API reference manual » 具象オブジェクト (concrete object) レイヤ » コードオブジェクト テーマ 自動 ライト ダーク | コードオブジェクト ¶ コードオブジェクト
...pilerFlags.cf_flags . Note that many CO_FUTURE_ flags are mandatory in current versions of Python, and setting them has no effect. The following flags are available. For their meaning, see the linked documentation of their Python equivalents. Flag 意味...spect.CO_ASYNC_GENERATOR CO_HAS_DOCSTRING ¶ inspect.CO_HAS_DOCSTRING CO_METHOD ¶ inspect.CO_METHOD CO_FUTURE_DIVISION ¶ no effect ( __future__.division ) CO_FUTURE_ABSOLUTE_IMPORT ¶ no effect ( __future__.absolute_import ) CO_FUTURE_WITH_STATEMENT ¶ no...effect ( __future__.with_statement ) CO_FUTURE_PRINT_FUNCTION ¶ no effect ( __future__.print_function ) CO_FUTURE_UNICODE_LITERAL... - https://man.mtool.work/python/3.14/c-api/code.html
- tkinter --- Tcl/Tk の Python インターフェース — Python 3.14.8 ドキュメント 7036
- ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » The Python standard library » Graphical user interfaces with Tk » tkinter --- Tcl/Tk の Python インターフェース テーマ 自動 ライト ダーク | tkinter --- Tcl/Tk の
...r is one of the usual anchor strings, such as 'nw' (the default) or 'center' . Called with no argument, this method has no effect. anchor() is an alias of grid_anchor() . Added in version 3.3. grid_bbox ( column = None , row = None , col2 = None , row2...a value that is not such an identifier raises ValueError . If the callback has already run or been cancelled, this has no effect. バージョン 3.7 で変更: Passing None (or any false value) as id now raises ValueError . after_idle ( func , * args , ** kw...e widget's display is automatically released. Setting a grab is the usual way to make a dialog modal: while the grab is in effect the user cannot interact with the other windows of the application. grab_set_global ( ) ¶ Set a global grab on this widget... - https://man.mtool.work/python/3.14/library/tkinter.html