Python 3.6.5 ドキュメント 検索

phrase: max: clip:
target: order:
Results of 1 - 10 of about 129 for call (0.026 sec.)
26.6. unittest.mock --- 入門 — Python 3.6.5 ドキュメント 14120
ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.6.5 ドキュメント » Python 標準ライブラ ... を使うといいでしょう。 モックが呼び出されると、その called 属性が True に設定されます。そして assert_called ... _with() や assert_called_once_with() メソッドを使ってそのメソッドが正しい ... >>> real . method () >>> real . something . assert_called_once_with ( 1 , 2 , 3 ) 26.6.1.2. オブジェクトの ... > real . closer ( mock ) >>> mock . close . assert_called_with () モックに close メソッドを持たせるために何 ...
https://man.plustar.jp/python/library/unittest.mock-examples.html - [similar]
26.5. unittest.mock --- モックオブジェクトライブラリ — Python 3.6.5 ドキュメン... 13670
ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.6.5 ドキュメント » Python 標準ライブラ ... 5 , key = 'value' ) 3 >>> thing . method . assert_called_with ( 3 , 4 , 5 , key = 'value' ) side_effect に ... rror ( 'foo' )) >>> mock () Traceback (most recent call last): ... KeyError : 'foo' >>> values = { 'a' : 1 ... ss2 is module . ClassName2 ... assert MockClass1 . called ... assert MockClass2 . called ... >>> test () 注 ... method ( 1 , 2 , 3 ) ... >>> mock_method . assert_called_once_with ( 1 , 2 , 3 ) また、 patch.dict() を使 ...
https://man.plustar.jp/python/library/unittest.mock.html - [similar]
DTrace と SystemTap で CPython を測定する — Python 3.6.5 ドキュメント 10989
ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.6.5 ドキュメント » Python HOWTO » DTra ... for SystemTap describing how it can patch strategically-placed machine code instructions to enable the tr ... wing example DTrace script can be used to show the call/return hierarchy of a Python script, only tracing ... within the invocation of a function called "start". In other words, import-time function in ... この例は次のように実行できます: $ sudo dtrace -q -s call_stack.d -c "python3.6 script.py" 出力はこのようにな ...
https://man.plustar.jp/python/howto/instrumentation.html - [similar]
18.5.1. 基底イベントループ — Python 3.6.5 ドキュメント 9625
ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.6.5 ドキュメント » Python 標準ライブラ ... lose () バージョン 3.6 で追加. 18.5.1.2. 呼び出し (call) ¶ asyncio 関数の大半はキーワードを受け付けません。 ... nctools.partial() を使用してください。 例えば loop.call_soon(functools.partial(print, "Hello", flush=True) ... 、 lambda 関数の表現は貧弱です。 AbstractEventLoop. call_soon ( callback , *args ) ¶ コールバックをすぐに呼 ... び出せるように準備します。 コールバックは call_soon() が返ると呼び出され、制御はイベントループに返 ...
https://man.plustar.jp/python/library/asyncio-eventloop.html - [similar]
32.12. dis --- Python バイトコードの逆アセンブラ — Python 3.6.5 ドキュメント 7797
ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.6.5 ドキュメント » Python 標準ライブラ ... ) 2 0 LOAD_GLOBAL 0 (len) 2 LOAD_FAST 0 (alist) 4 CALL_FUNCTION 1 6 RETURN_VALUE ("2" は行番号です)。 32. ... print ( instr . opname ) ... LOAD_GLOBAL LOAD_FAST CALL_FUNCTION RETURN_VALUE 32.12.2. 解析関数 ¶ dis モジ ... or module body contains variable annotations statically. バージョン 3.6 で追加. IMPORT_STAR ¶ '_' で始まっ ... プッシュします。 これはクラスを構築するために、後で CALL_FUNCTION に呼ばれます。 SETUP_WITH ( delta ) ¶ この ...
https://man.plustar.jp/python/library/dis.html - [similar]
18.5.9. asyncio での開発 — Python 3.6.5 ドキュメント 7578
ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.6.5 ドキュメント » Python 標準ライブラ ... のログを取ります 誤ったスレッドから呼ばれた場合、 call_soon() や call_at() メソッドが例外を送出します セレ ... を超えるコールバックのログ。 AbstractEventLoop.slow_callback_duration 属性には "遅い" コールバックとみなす最 ... (): fut . set_result ( 'done' ) AbstractEventLoop.call_soon() で、Future の set_result() メソッドまたは s ... ールバックをスケジュールする場合、 AbstractEventLoop.call_soon_threadsafe() メソッドを使用してください。例: ...
https://man.plustar.jp/python/library/asyncio-dev.html - [similar]
What's New In Python 3.6 — Python 3.6.5 ドキュメント 7517
ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.6.5 ドキュメント » What's New in Pytho ... en added to simplify the generation of cryptographically strong pseudo-random numbers suitable for managin ... ass. The new __init_subclass__ classmethod will be called on the base class whenever a new subclass is cre ... se ): pass In order to allow zero-argument super() calls to work correctly from __init_subclass__() implem ... ver a new class is defined, the new method will be called on all descriptors included in the definition, p ...
https://man.plustar.jp/python/whatsnew/3.6.html - [similar]
18.5.3. タスクとコルーチン — Python 3.6.5 ドキュメント 7456
ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.6.5 ドキュメント » Python 標準ライブラ ... be propagated). The coroutine expression must be a call to another coroutine. return expression -- produce ... s waiting for this one using await or yield from . Calling a coroutine does not start its code running -- ... the coroutine object returned by the call doesn't do anything until you schedule its executi ... on. There are two basic ways to start it running: call await coroutine or yield from coroutine from anoth ...
https://man.plustar.jp/python/library/asyncio-task.html - [similar]
19.1.7. email.contentmanager: MIME 内容の管理 — Python 3.6.5 ドキュメント 6895
ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.6.5 ドキュメント » Python 標準ライブラ ... based on the mimetype of msg (see next paragraph), call it, passing through all arguments, and return the ... result of the call. The expectation is that the handler will extract ... ion based on the type of obj (see next paragraph), call clear_content() on the msg , and call the handler ... ey , handler ) ¶ Record handler as the function to call when an object of a type matching typekey is passe ...
https://man.plustar.jp/python/library/email.contentmanager.html - [similar]
29.1. sys --- システムパラメータと関数 — Python 3.6.5 ドキュメント 6835
ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.6.5 ドキュメント » Python 標準ライブラ ... ポートされたモジュールのみのリストを返します。) sys. call_tracing ( func , args ) ¶ トレーシングが有効な間、 ... preter's internal caches, the result can vary from call to call; you may have to call _clear_type_cache() ... rent value of the flags that are used for dlopen() calls. Symbolic names for the flag values can be found ... finder objects that have their find_spec() methods called to see if one of the objects can find the module ...
https://man.plustar.jp/python/library/sys.html - [similar]
PREV 1 2 3 4 5 6 7 8 9 10 NEXT