Python 3.6.5 ドキュメント 検索
Results of 21 - 30 of about 76 for result (0.029 sec.)
- 26.5. unittest.mock --- モックオブジェクトライブラリ — Python 3.6.5 ドキュメン... 7078
- ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.6.5 ドキュメント » Python 標準ライブラ
...
呼び出しを記録します。 >>> mock = MagicMock () >>> result = mock ( 1 , 2 , 3 ) >>> mock . first ( a = 3 ) <M...
e='mock.second()' id='...'> >>> int ( mock ) 1 >>> result ( 1 ) <MagicMock name='mock()()' id='...'> >>> exp...
'fish' ) >>> mock . __getitem__ . return_value = 'result' >>> mock [ 2 ] 'result' デフォルトでは、多くのプロ...
method . return_value = sentinel . some_object >>> result = real . method () >>> assert result is sentinel ....
- https://man.plustar.jp/python/library/unittest.mock.html - [similar]
- 29.12. inspect --- 活動中のオブジェクトの情報を取得する — Python 3.6.5 ドキュメ... 6981
- ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.6.5 ドキュメント » Python 標準ライブラ
...
もう許可されません。 class inspect. BoundArguments ¶ Result of a Signature.bind() or Signature.bind_partial()...
criptor , getset_descriptor , wrapper_descriptor ) result = getattr_static ( some_object , 'foo' ) if type (...
result ) in descriptor_types : try : result = result . __...
- https://man.plustar.jp/python/library/inspect.html - [similar]
- 26.6. unittest.mock --- 入門 — Python 3.6.5 ドキュメント 6981
- ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.6.5 ドキュメント » Python 標準ライブラ
...
_value ... instance . method . return_value = 'the result' ... result = some_function () ... assert result =...
= 'the result' 26.6.1.4. モックに名前をつける ¶ モックに名前をつ...
can find yourself having to calculate an expected result using exactly the same algorithm as the code under...
hat aside there is a way to use mock to affect the results of an import. Importing fetches an object from th...
- https://man.plustar.jp/python/library/unittest.mock-examples.html - [similar]
- Unicode オブジェクトと codec — Python 3.6.5 ドキュメント 6885
- ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.6.5 ドキュメント » Python/C API リファ
...
int PyUnicode_FSConverter ( PyObject * obj , void* result ) ¶ ParseTuple converter: encode str objects -- ob...
ncodeFSDefault() ; bytes objects are output as-is. result must be a PyBytesObject* which must be released wh...
: int PyUnicode_FSDecoder ( PyObject * obj , void* result ) ¶ ParseTuple converter: decode bytes objects --...
FSDefaultAndSize() ; str objects are output as-is. result must be a PyUnicodeObject* which must be released...
- https://man.plustar.jp/python/c-api/unicode.html - [similar]
- 16.16. ctypes --- Pythonのための外部関数ライブラリ — Python 3.6.5 ドキュメント 6885
- ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.6.5 ドキュメント » Python 標準ライブラ
...
stdcall 呼び出し規約を使いますが、関数が Windows HRESULT エラーコードを返すことを想定しています。このエラー...
数は stdcall 呼び出し規約を使用し、 windows 固有の HRESULT コードを返すと仮定されます。 HRESULT 値には関数呼び...
は三つ以上の引数とともに呼び出されます。 callable ( result , func , arguments ) result は外部関数が返すもので...
factory functions must be called with the desired result type and the argument types of the function. ctype...
- https://man.plustar.jp/python/library/ctypes.html - [similar]
- What's New in Python 2.3 — Python 3.6.5 ドキュメント 6885
- ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.6.5 ドキュメント » What's New in Pytho
...
ge ( len ( L )): item = L [ i ] # ... compute some result based on item ... L [ i ] = result これは enumerat...
or i , item in enumerate ( L ): # ... compute some result based on item ... L [ i ] = result 参考 PEP 279 -...
&c., and send it to a central catalog server. The resulting catalog is available from https://pypi.python.o...
f people have contributed single changes.) The net result of the 2.3 optimizations is that Python 2.3 runs t...
- https://man.plustar.jp/python/whatsnew/2.3.html - [similar]
- What's New in Python 2.6 — Python 3.6.5 ドキュメント 6885
- ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.6.5 ドキュメント » What's New in Pytho
...
= 0 : time . sleep ( .05 * N / 4 ) # Calculate the result fact = 1 L for i in range ( 1 , N + 1 ): fact = fa...
ct * i # Put the result on the queue queue . put ( fact ) if __name__ == '...
l , args = ( queue , N )) p . start () p . join () result = queue . get () print 'Factorial' , N , '=' , res...
onary ): "Compute a factorial." ... p = Pool ( 5 ) result = p . map ( factorial , range ( 1 , 1000 , 10 )) f...
- https://man.plustar.jp/python/whatsnew/2.6.html - [similar]
- 正規表現 HOWTO — Python 3.6.5 ドキュメント 6788
- ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.6.5 ドキュメント » Python HOWTO » 正規
...
nterpreted as a lower limit of 0, while omitting n results in an upper bound of infinity. 還元主義的素養のあ...
ions, but not valid as Python string literals, now result in a DeprecationWarning and will eventually become...
r to print no output. You can explicitly print the result of match() to make this clear. >>> p . match ( ""...
ll return a match object , so you should store the result in a variable for later use. >>> m = p . match ( '...
- https://man.plustar.jp/python/howto/regex.html - [similar]
- 6.3. difflib --- 差分の計算を助ける — Python 3.6.5 ドキュメント 6788
- ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.6.5 ドキュメント » Python 標準ライブラ
...
タを参照してください。 最後に、2つを比較します: >>> result = list ( d . compare ( text1 , text2 )) result は文...
ましょう: >>> from pprint import pprint >>> pprint ( result ) [' 1. Beautiful is better than ugly.\n', '- 2. E...
ます: >>> import sys >>> sys . stdout . writelines ( result ) 1. Beautiful is better than ugly. - 2. Explicit...
- https://man.plustar.jp/python/library/difflib.html - [similar]
- 21.26. xmlrpc.client --- XML-RPC クライアントアクセス — Python 3.6.5 ドキュメン... 6788
- ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.6.5 ドキュメント » Python 標準ライブラ
...
line and carriage return); failing to do this will result in an XML-RPC request that isn't well-formed XML....
. multiply ( 7 , 3 ) multicall . divide ( 7 , 3 ) result = multicall () print ( "7+3= %d , 7-3= %d , 7*3= %...
d , 7//3= %d " % tuple ( result )) 21.26.7. 補助関数 ¶ xmlrpc.client. dumps ( para...
- https://man.plustar.jp/python/library/xmlrpc.client.html - [similar]