Results of 1 - 10 of about 133 for kwargs (0.025 sec.)
- unittest.mock --- モックオブジェクトライブラリ — Python 3.14.8 ドキュメント 10392
- ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » The Python standard library » 開発ツール » unittest.mock --- モックオブジェクトライブラリ テーマ 自動 ライト ダーク | unittest.mock --- モックオブジェクトライブラ
...= None , side_effect = None , return_value = DEFAULT , wraps = None , name = None , spec_set = None , unsafe = False , ** kwargs ) ¶ 新しい Mock オブジェクトを作成します。 Mock はモックオブジェクトの挙動を指定するオプション引数をいくつか取ります: spec...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 asserting that the last call has been made in a particular way: >>> mock = Mock ()...hod()' id='...'> >>> mock . method . assert_called_with ( 1 , 2 , 3 , test = 'wow' ) assert_called_once_with ( * args , ** kwargs ) ¶ モックが一度だけ呼び出され、かつ指定された引数で呼び出されたことをアサートします。 >>> mock = Mock ( return_value = No... - https://man.mtool.work/python/3.14/library/unittest.mock.html
- unittest.mock --- モックオブジェクトライブラリ — Python 3.14.8 ドキュメント 10392
- ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » The Python standard library » 開発ツール » unittest.mock --- モックオブジェクトライブラリ テーマ 自動 ライト ダーク | unittest.mock --- モックオブジェクトライブラ
...= None , side_effect = None , return_value = DEFAULT , wraps = None , name = None , spec_set = None , unsafe = False , ** kwargs ) ¶ 新しい Mock オブジェクトを作成します。 Mock はモックオブジェクトの挙動を指定するオプション引数をいくつか取ります: spec...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 asserting that the last call has been made in a particular way: >>> mock = Mock ()...hod()' id='...'> >>> mock . method . assert_called_with ( 1 , 2 , 3 , test = 'wow' ) assert_called_once_with ( * args , ** kwargs ) ¶ モックが一度だけ呼び出され、かつ指定された引数で呼び出されたことをアサートします。 >>> mock = Mock ( return_value = No... - https://man.mtool.work/python/3.14/library/unittest.mock.html
- Logging クックブック — Python 3.14.8 ドキュメント 10295
- ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » Python HOWTO » Logging クックブック テーマ 自動 ライト ダーク | Logging クックブック ¶ Author : Vinay Sajip <vinay_sajip at red-dove dot com> このページは、過去に
...委譲された呼び出しに埋め込みます。 LoggerAdapter のコードから少し抜き出してみます: def debug ( self , msg , / , * args , ** kwargs ): """ Delegate a debug call to the underlying logger, after adding contextual information from this adapter instance. """...msg , kwargs = self . process ( msg , kwargs ) self . logger . debug ( msg , * args , ** kwargs ) LoggerAdapter の process() メソッドが...ike object to have a 'connid' key, whose value in brackets is prepended to the log message. """ def process ( self , msg , kwargs ): return '[ %s ] %s ' % ( self . extra [ 'connid' ], msg ), kwargs これを次のように使うことができます: logger = logging .... - https://man.mtool.work/python/3.14/howto/logging-cookbook.html
- Logging クックブック — Python 3.14.8 ドキュメント 10211
- ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » Python HOWTO » Logging クックブック テーマ 自動 ライト ダーク | Logging クックブック ¶ Author : Vinay Sajip <vinay_sajip at red-dove dot com> このページは、過去に
...委譲された呼び出しに埋め込みます。 LoggerAdapter のコードから少し抜き出してみます: def debug ( self , msg , / , * args , ** kwargs ): """ Delegate a debug call to the underlying logger, after adding contextual information from this adapter instance. """...msg , kwargs = self . process ( msg , kwargs ) self . logger . debug ( msg , * args , ** kwargs ) LoggerAdapter の process() メソッドが...ike object to have a 'connid' key, whose value in brackets is prepended to the log message. """ def process ( self , msg , kwargs ): return '[ %s ] %s ' % ( self . extra [ 'connid' ], msg ), kwargs これを次のように使うことができます: logger = logging .... - https://man.mtool.work/python/3.14/howto/logging-cookbook.html
- sched --- イベントスケジューラー — Python 3.14.8 ドキュメント 9232
- ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » The Python standard library » 並行実行 » sched --- イベントスケジューラー テーマ 自動 ライト ダーク | sched --- イベントスケジューラー ¶ ソースコード: Lib/sched.
...pite having higher priority, 'keyword' runs after 'positional' as enter() is relative ... s . enter ( 5 , 1 , print_time , kwargs = { 'a' : 'keyword' }) ... s . enterabs ( 1_650_000_000 , 10 , print_time , argument = ( "first enterabs" ,)) ... s . ente...heduler インスタンスは以下のメソッドと属性を持っています: scheduler. enterabs ( time , priority , action , argument = () , kwargs = {} ) ¶ 新しいイベントをスケジュールします。 引数 time は、コンストラクタへ渡された timefunc の戻り値と互換な数値型でなけ...れらの priority によって実行されます。 数値の小さい方が高い優先度となります。 イベントを実行することは、 action(*argument, **kwargs) を実行することを意味します。 argument は action のための位置引数を保持するシーケンスでなければいけません。 kwargs は acti... - https://man.mtool.work/python/3.14/library/sched.html
- sched --- イベントスケジューラー — Python 3.14.8 ドキュメント 9232
- ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » The Python standard library » 並行実行 » sched --- イベントスケジューラー テーマ 自動 ライト ダーク | sched --- イベントスケジューラー ¶ ソースコード: Lib/sched.
...pite having higher priority, 'keyword' runs after 'positional' as enter() is relative ... s . enter ( 5 , 1 , print_time , kwargs = { 'a' : 'keyword' }) ... s . enterabs ( 1_650_000_000 , 10 , print_time , argument = ( "first enterabs" ,)) ... s . ente...heduler インスタンスは以下のメソッドと属性を持っています: scheduler. enterabs ( time , priority , action , argument = () , kwargs = {} ) ¶ 新しいイベントをスケジュールします。 引数 time は、コンストラクタへ渡された timefunc の戻り値と互換な数値型でなけ...れらの priority によって実行されます。 数値の小さい方が高い優先度となります。 イベントを実行することは、 action(*argument, **kwargs) を実行することを意味します。 argument は action のための位置引数を保持するシーケンスでなければいけません。 kwargs は acti... - https://man.mtool.work/python/3.14/library/sched.html
- Call プロトコル — Python 3.14.8 ドキュメント 8869
- ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » Python/C API reference manual » 抽象オブジェクトレイヤ (Abstract Objects Layer) » Call プロトコル テーマ 自動 ライト ダーク | Call プロトコル ¶ CPython supports
...p_call are callable. The signature of the slot is: PyObject * tp_call ( PyObject * callable , PyObject * args , PyObject * kwargs ); A call is made using a tuple for the positional arguments and a dict for the keyword arguments, similarly to callable(*...args, **kwargs) in Python code. args must be non-NULL (use an empty tuple if there are no arguments) but kwargs may be NULL if there are...call if that would be slower than tp_call . For example, if the callee needs to convert the arguments to an args tuple and kwargs dict anyway, then there is no point in implementing vectorcall. Classes can implement the vectorcall protocol by enabling... - https://man.mtool.work/python/3.14/c-api/call.html
- Call プロトコル — Python 3.14.8 ドキュメント 8869
- ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » Python/C API reference manual » 抽象オブジェクトレイヤ (Abstract Objects Layer) » Call プロトコル テーマ 自動 ライト ダーク | Call プロトコル ¶ CPython supports
...p_call are callable. The signature of the slot is: PyObject * tp_call ( PyObject * callable , PyObject * args , PyObject * kwargs ); A call is made using a tuple for the positional arguments and a dict for the keyword arguments, similarly to callable(*...args, **kwargs) in Python code. args must be non-NULL (use an empty tuple if there are no arguments) but kwargs may be NULL if there are...call if that would be slower than tp_call . For example, if the callee needs to convert the arguments to an args tuple and kwargs dict anyway, then there is no point in implementing vectorcall. Classes can implement the vectorcall protocol by enabling... - https://man.mtool.work/python/3.14/c-api/call.html
- collections --- コンテナデータ型 — Python 3.14.8 ドキュメント 8688
- ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » The Python standard library » データ型 » collections --- コンテナデータ型 テーマ 自動 ライト ダーク | collections --- コンテナデータ型 ¶ ソースコード: Lib/collec
...グが探される順番を変更できます。このリストは常に一つ以上のマッピングを含んでいなければなりません。 new_child ( m = None , ** kwargs ) ¶ 新しいマッピングに現在のインスタンスが持つ全てのマッピングを追加したものを持つ新しい ChainMap インスタンスを返します。...f', 669), ('i', 631), ('you', 554), ('a', 546), ('my', 514), ('hamlet', 471), ('in', 451)] class collections. Counter ( ** kwargs ) ¶ class collections. Counter ( iterable , / , ** kwargs ) class collections. Counter ( mapping , / , ** kwargs ) Counter...の要素は挿入順に並べられます: >>> Counter ( 'abracadabra' ) . most_common ( 3 ) [('a', 5), ('b', 2), ('r', 2)] subtract ( ** kwargs ) ¶ subtract ( iterable , / , ** kwargs ) subtract ( mapping , / , ** kwargs ) 要素から iterable の要素または mapping の要... - https://man.mtool.work/python/3.14/library/collections.html
- collections --- コンテナデータ型 — Python 3.14.8 ドキュメント 8688
- ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » The Python standard library » データ型 » collections --- コンテナデータ型 テーマ 自動 ライト ダーク | collections --- コンテナデータ型 ¶ ソースコード: Lib/collec
...グが探される順番を変更できます。このリストは常に一つ以上のマッピングを含んでいなければなりません。 new_child ( m = None , ** kwargs ) ¶ 新しいマッピングに現在のインスタンスが持つ全てのマッピングを追加したものを持つ新しい ChainMap インスタンスを返します。...f', 669), ('i', 631), ('you', 554), ('a', 546), ('my', 514), ('hamlet', 471), ('in', 451)] class collections. Counter ( ** kwargs ) ¶ class collections. Counter ( iterable , / , ** kwargs ) class collections. Counter ( mapping , / , ** kwargs ) Counter...の要素は挿入順に並べられます: >>> Counter ( 'abracadabra' ) . most_common ( 3 ) [('a', 5), ('b', 2), ('r', 2)] subtract ( ** kwargs ) ¶ subtract ( iterable , / , ** kwargs ) subtract ( mapping , / , ** kwargs ) 要素から iterable の要素または mapping の要... - https://man.mtool.work/python/3.14/library/collections.html