Python 3.6.5 ドキュメント 検索
Results of 1 - 10 of about 77 for called (0.043 sec.)
- 26.6. unittest.mock --- 入門 — Python 3.6.5 ドキュメント 15706
- ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.6.5 ドキュメント » Python 標準ライブラ
...
を使うといいでしょう。 モックが呼び出されると、その called 属性が True に設定されます。そして assert_called_w...
ith() や 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 ドキュメン... 13799
- ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.6.5 ドキュメント » Python 標準ライブラ
...
5 , key = 'value' ) 3 >>> thing . method . assert_called_with ( 3 , 4 , 5 , key = 'value' ) side_effect によ...
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() を使う...
r ( mock ) 'foobarbaz' >>> mock . __str__ . assert_called_with () mock によってマジックメソッドに関数 (あるい...
- https://man.plustar.jp/python/library/unittest.mock.html - [similar]
- 29.1. sys --- システムパラメータと関数 — Python 3.6.5 ドキュメント 8233
- ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.6.5 ドキュメント » Python 標準ライブラ
...
finder objects that have their find_spec() methods called to see if one of the objects can find the module t...
o be imported. The find_spec() method is called with at least the absolute name of the module bein...
1 . Earlier versions of Python looked for a method called find_module() . This is still called as a fallback...
y resolving of symbols when importing a module, if called as sys.setdlopenflags(0) . To share symbols across...
- https://man.plustar.jp/python/library/sys.html - [similar]
- 8.8. weakref --- 弱参照 — Python 3.6.5 ドキュメント 8150
- ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.6.5 ドキュメント » Python 標準ライブラ
...
s C : ... def method ( self ): ... print ( "method called!" ) ... >>> c = C () >>> r = weakref . ref ( c . m...
n__.C object at 0x7fc859830220>> >>> r ()() method called! >>> del c >>> gc . collect () 0 >>> r () >>> バー...
live finalizers for which atexit is true. They are called in reverse order of creation. 注釈 It is important...
ent and the number of times the reference has been called. """ ob = super ( ExtendedRef , self ) . __call__...
- https://man.plustar.jp/python/library/weakref.html - [similar]
- What's New In Python 3.6 — Python 3.6.5 ドキュメント 7860
- ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.6.5 ドキュメント » What's New in Pytho
...
ass. The new __init_subclass__ classmethod will be called on the base class whenever a new subclass is creat...
ver a new class is defined, the new method will be called on all descriptors included in the definition, pro...
PYMEM_DOMAIN_MEM (ex: PyMem_Malloc() ) domains are called. Checking if the GIL is held is also a new feature...
zero-argument super() will now work correctly when called from metaclass methods during class creation. (Con...
- https://man.plustar.jp/python/whatsnew/3.6.html - [similar]
- オペレーティングシステム関連のユーティリティ — Python 3.6.5 ドキュメント 7708
- ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.6.5 ドキュメント » Python/C API リファ
...
( *func )() ) ¶ Register a cleanup function to be called by Py_FinalizeEx() . The cleanup function will be...
turns -1 . The cleanup function registered last is called first. Each cleanup function will be called at mos...
ore the cleanup function, no Python APIs should be called by func . 関連キーワード: 関数 , PySys , sys , Py...
- https://man.plustar.jp/python/c-api/sys.html - [similar]
- Argument Clinic How-To — Python 3.6.5 ドキュメント 7708
- ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.6.5 ドキュメント » Python HOWTO » Argu
...
lue at runtime. For now you're going to use what's called a "legacy converter"—a convenience syntax intended...
rmat ( PicklingError , "Pickler.__init__() was not called by %s.__init__()" , Py_TYPE ( self ) -> tp_name );...
t always be specified together. (The arguments are called x and y ; if you call the function passing in x ,...
this alternate approach to parsing, using what are called optional groups . Optional groups are groups of ar...
- https://man.plustar.jp/python/howto/clinic.html - [similar]
- 6. 式 (expression) — Python 3.6.5 ドキュメント 7708
- ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.6.5 ドキュメント » Python 言語リファレ
...
ither async for clauses or await expressions it is called an asynchronous comprehension . An asynchronous co...
ither async for clauses or await expressions it is called an asynchronous generator expression . An asynchro...
): ... print ( "Execution starts when 'next()' is called for the first time." ) ... try : ... while True :...
rint ( "Don't forget to clean up when 'close()' is called." ) ... >>> generator = echo ( 1 ) >>> print ( nex...
- https://man.plustar.jp/python/reference/expressions.html - [similar]
- 19.1.4. email.policy: ポリシーオブジェクト — Python 3.6.5 ドキュメント 7639
- ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.6.5 ドキュメント » Python 標準ライブラ
...
at32 . This includes certain hook methods that are called internally by the email package, which a custom po...
追加. The following Policy method is intended to be called by code using the email library to create policy i...
eyword arguments. The remaining Policy methods are called by the email package code, and are not intended to...
be called by an application using the email package. A custo...
- https://man.plustar.jp/python/library/email.policy.html - [similar]
- 21.13. ftplib --- FTPプロトコルクライアント — Python 3.6.5 ドキュメント 7639
- ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.6.5 ドキュメント » Python 標準ライブラ
...
y a different port number. This function should be called only once for each instance; it should not be call...
ommand: 'RETR filename' . The callback function is called for each block of data received, with a single byt...
ves a list of file names. The callback function is called for each line with a string argument containing th...
k is an optional single parameter callable that is called on each block of data after it is sent. rest means...
- https://man.plustar.jp/python/library/ftplib.html - [similar]