Python 3.6.5 ドキュメント 検索

phrase: max: clip:
target: order:
Results of 1 - 10 of about 213 for Return (0.026 sec.)
2. 拡張の型の定義: チュートリアル — Python 3.6.5 ドキュメント 10153
ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.6.5 ドキュメント » Python インタプリタ ... ect * m ; if ( PyType_Ready ( & CustomType ) < 0 ) return NULL ; m = PyModule_Create ( & custommodule ); if ... ( m == NULL ) return NULL ; Py_INCREF ( & CustomType ); PyModule_AddObj ... ct ( m , "Custom" , ( PyObject * ) & CustomType ); return m ; } 一度に把握するにはちょっと量が多いですが、前 ... いでしょう: if ( PyType_Ready ( & CustomType ) < 0 ) return ; これは、 NULL に初期化された ob_type も含めて、い ...
https://man.plustar.jp/python/extending/newtypes_tutorial.html - [similar]
26.5. unittest.mock --- モックオブジェクトライブラリ — Python 3.6.5 ドキュメン... 9552
ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.6.5 ドキュメント » Python 標準ライブラ ... roductionClass () >>> thing . method = MagicMock ( return_value = 3 ) >>> thing . method ( 3 , 4 , 5 , key = ... ' : 2 , 'c' : 3 } >>> def side_effect ( arg ): ... return values [ arg ] ... >>> mock . side_effect = side_e ... with patch . object ( ProductionClass , 'method' , return_value = None ) as mock_method : ... thing = Produc ... します: >>> mock = MagicMock () >>> mock . __str__ . return_value = 'foobarbaz' >>> str ( mock ) 'foobarbaz' > ...
https://man.plustar.jp/python/library/unittest.mock.html - [similar]
数値型プロトコル (number protocol) — Python 3.6.5 ドキュメント 9468
ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.6.5 ドキュメント » Python/C API リファ ... t * PyNumber_Add ( PyObject *o1 , PyObject *o2 ) ¶ Return value: New reference. 成功すると o1 と o2 を加算し ... yNumber_Subtract ( PyObject *o1 , PyObject *o2 ) ¶ Return value: New reference. 成功すると o1 から o2 を減算 ... yNumber_Multiply ( PyObject *o1 , PyObject *o2 ) ¶ Return value: New reference. 成功すると o1 と o2 を乗算し ... mber_FloorDivide ( PyObject *o1 , PyObject *o2 ) ¶ Return value: New reference. 成功すると o1 を o2 で除算し ...
https://man.plustar.jp/python/c-api/number.html - [similar]
DTrace と SystemTap で CPython を測定する — Python 3.6.5 ドキュメント 8983
ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.6.5 ドキュメント » Python HOWTO » DTra ... n18035 python3.6 _PyEval_EvalFrameDefault function-return 29567 python18035 python3.6 dtrace_function_return ... function-return 29568 python18035 python3.6 collect gc-done 29569 ... robe descriptors) Provider: python Name: function__return Location: 0x000000000053dba8, Base: 0x000000000063 ... example DTrace script can be used to show the call/return hierarchy of a Python script, only tracing within ...
https://man.plustar.jp/python/howto/instrumentation.html - [similar]
26.6. unittest.mock --- 入門 — Python 3.6.5 ドキュメント 8909
ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.6.5 ドキュメント » Python 標準ライブラ ... ンスタンスはモックを呼び出して作られるので、モックの return_value を変更することでカスタマイズできます。 >>> d ... me_function (): ... instance = module . Foo () ... return instance . method () ... >>> with patch ( 'module. ... Foo' ) as mock : ... instance = mock . return_value ... instance . method . return_value = 'the ... のはとっても簡単です: >>> mock = Mock () >>> mock . return_value = 3 >>> mock () 3 もちろん同じことがモックの ...
https://man.plustar.jp/python/library/unittest.mock-examples.html - [similar]
10.1. itertools --- 効率的なループ実行のためのイテレータ生成関数 — Python 3.6.5... 8783
ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.6.5 ドキュメント » Python 標準ライブラ ... accumulate ( iterable , func = operator . add ): 'Return running totals' # accumulate([1,2,3,4,5]) --> 1 3 ... ) try : total = next ( it ) except StopIteration : return yield total for element in it : total = func ( tot ... l = tuple ( iterable ) n = len ( pool ) if r > n : return indices = list ( range ( r )) yield tuple ( pool [ ... r )): if indices [ i ] != i + n - r : break else : return indices [ i ] += 1 for j in range ( i + 1 , r ): i ...
https://man.plustar.jp/python/library/itertools.html - [similar]
9.1. numbers --- 数の抽象基底クラス — Python 3.6.5 ドキュメント 8783
ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.6.5 ドキュメント » Python 標準ライブラ ... if self . denominator == 1 : # Get integers right. return hash ( self . numerator ) # Expensive check, but d ... efinitely correct. if self == float ( self ): return hash ( float ( self )) else : # Use tuple's hash t ... avoid a high collision rate on # simple fractions. return hash (( self . numerator , self . denominator )) 9 ... f , other ): if isinstance ( other , MyIntegral ): return do_my_adding_stuff ( self , other ) elif isinstanc ...
https://man.plustar.jp/python/library/numbers.html - [similar]
Unicode オブジェクトと codec — Python 3.6.5 ドキュメント 7908
ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.6.5 ドキュメント » Python/C API リファ ... bj , const char *encoding , const char *errors ) ¶ Return value: New reference. エンコードされている obj を ... nicode ( const Py_UNICODE *u , Py_ssize_t size ) ¶ Return value: New reference. size で指定された長さを持つ ... yObject * PyUnicode_FromObject ( PyObject *obj ) ¶ Return value: New reference. Unicode のサブタイプのインス ... y_FileSystemDefaultEncodeErrors error handler, and return bytes . Note that the resulting bytes object may c ...
https://man.plustar.jp/python/c-api/unicode.html - [similar]
マップ型プロトコル (mapping protocol) — Python 3.6.5 ドキュメント 7823
ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.6.5 ドキュメント » Python/C API リファ ... protocol) ¶ int PyMapping_Check ( PyObject *o ) ¶ Return 1 if the object provides mapping protocol, and 0 o ... ) ¶ Py_ssize_t PyMapping_Length ( PyObject *o ) ¶ Returns the number of keys in object o on success, and -1 ... ove the mapping for object key from the object o . Return -1 on failure. This is equivalent to the Python st ... ove the mapping for object key from the object o . Return -1 on failure. This is equivalent to the Python st ...
https://man.plustar.jp/python/c-api/mapping.html - [similar]
8.1. datetime --- 基本的な日付型および時間型 — Python 3.6.5 ドキュメント 7549
ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.6.5 ドキュメント » Python 標準ライブラ ... ました。 バージョン 3.6 で変更: fromtimestamp() may return instances with fold set to 1. classmethod datetime ... me. combine ( date , time , tzinfo=self.tzinfo ) ¶ Return a new datetime object whose date components are eq ... date オブジェクトを返します。 datetime. time ( ) ¶ Return time object with same hour, minute, second, micros ... ージョン 3.6 で変更: The fold value is copied to the returned time object. datetime. timetz ( ) ¶ Return time ...
https://man.plustar.jp/python/library/datetime.html - [similar]
PREV 1 2 3 4 5 6 7 8 9 10 NEXT