Python 3.6.5 ドキュメント 検索

phrase: max: clip:
target: order:
Results of 1 - 10 of about 43 for callable (0.038 sec.)
イテレータオブジェクト (iterator object) — Python 3.6.5 ドキュメント 12294
ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.6.5 ドキュメント » Python/C API リファ ... 真を返します。 PyObject * PyCallIter_New ( PyObject *callable , PyObject *sentinel ) ¶ Return value: New referen ... ce. 新たなイテレータを返します。最初のパラメタ callable は引数なしで呼び出せる Python の呼び出し可能オブジ ... ェクトならなんでもかまいません; callable は、呼び出されるたびに次の反復処理対象オブジェクト ... を返さなければなりません。生成されたイテレータは、 callable が sentinel に等しい値を返すと反復処理を終了します ...
https://man.plustar.jp/python/c-api/iterator.html - [similar]
オブジェクトプロトコル (object protocol) — Python 3.6.5 ドキュメント 11661
ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.6.5 ドキュメント » Python/C API リファ ... ればならない) を持たせることで上書きできます。 int PyCallable_Check ( PyObject *o ) ¶ オブジェクト o が呼び出し可 ... に成功します。 PyObject * PyObject_Call ( PyObject *callable_object , PyObject *args , PyObject *kw ) ¶ Return ... New reference. 呼び出し可能な Python オブジェクト callable_object をタプルで指定された引数 args および辞書で指 ... クトを返し、失敗すると NULL を返します。 Python の式 callable_object(*args, **kw) と同じです。 PyObject * PyObje ...
https://man.plustar.jp/python/c-api/object.html - [similar]
26.1. typing --- 型ヒントのサポート — Python 3.6.5 ドキュメント 11337
ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.6.5 ドキュメント » Python 標準ライブラ ... 最も基本的なサポートとして Any 、 Union 、 Tuple 、 Callable 、 TypeVar および Generic 型を含みます。完全な仕様 ... ルバック関数であることが期待されるフレームワークでは Callable[[Arg1Type, Arg2Type], ReturnType] のように使って型 ... ヒントを与えられます。 例えば: from typing import Callable def feeder ( get_next_item : Callable [[], str ]) ... -> None : # Body def async_query ( on_success : Callable [[ int ], None ], on_error : Callable [[ int , Exc ...
https://man.plustar.jp/python/library/typing.html - [similar]
16.8. logging.handlers --- ロギングハンドラ — Python 3.6.5 ドキュメント 10875
ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.6.5 ドキュメント » Python 標準ライブラ ... と同じです。属性は次の通りです: namer ¶ この属性に callable がセットされた場合、 rotation_filename() メソッドは ... この callable に委譲されます。 callable に渡されるパラメータは r ... ません。 バージョン 3.3 で追加. rotator ¶ この属性に callable がセットされた場合、 rotate() メソッドはこの calla ... ble に委譲されます。 callable に渡されるパラメータは rotate() に渡されたものです ...
https://man.plustar.jp/python/library/logging.handlers.html - [similar]
26.5. unittest.mock --- モックオブジェクトライブラリ — Python 3.6.5 ドキュメン... 10875
ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.6.5 ドキュメント » Python 標準ライブラ ... なモックを作成する場合には、呼び出し不能な変種の NonCallableMock や NonCallableMagicMock があります。 patch() デ ... h() は MagicMock を作成します。 patch() に渡す new_callable 引数によって、別の Mock クラスを指定できます。 cla ... tance ( mock , dict ) True class unittest.mock. NonCallableMock ( spec=None , wraps=None , name=None , spec_se ... pass ... >>> with patch ( '__main__.Foo.foo' , new_callable = PropertyMock ) as mock_foo : ... mock_foo . retu ...
https://man.plustar.jp/python/library/unittest.mock.html - [similar]
29.12. inspect --- 活動中のオブジェクトの情報を取得する — Python 3.6.5 ドキュメ... 9764
ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.6.5 ドキュメント » Python 標準ライブラ ... ignature object represents the call signature of a callable object and its return annotation. To retrieve a Si ... use the signature() function. inspect. signature ( callable , * , follow_wrapped=True ) ¶ 与えられた callable ... rapped parameter. Pass False to get a signature of callable specifically ( callable.__wrapped__ will not be us ... ed to unwrap decorated callables.) 注釈 Some callables may not be introspectable i ...
https://man.plustar.jp/python/library/inspect.html - [similar]
12.6. sqlite3 --- SQLite データベースに対する DB-API 2.0 インタフェース — Pytho... 9286
ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.6.5 ドキュメント » Python 標準ライブラ ... れました。 sqlite3. register_converter ( typename , callable ) ¶ Registers a callable to convert a bytestring f ... rom the database into a custom Python type. The callable will be invoked for all database values that are o ... ery must match! sqlite3. register_adapter ( type , callable ) ¶ 自分が使いたい Python の型 type を SQLite がサ ... ポートしている型に変換する呼び出し可能オブジェクト (callable) を登録します。その呼び出し可能オブジェクト callab ...
https://man.plustar.jp/python/library/sqlite3.html - [similar]
What's New In Python 3.4 — Python 3.6.5 ドキュメント 8329
ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.6.5 ドキュメント » What's New in Pytho ... ) inspect と pydoc が以前よりも遥かに幅広い種類の callable オブジェクトを正しくイントロスペクション出来るよう ... たな partialmethod() デスクリプタは、ちょうど普通の callable に対して partial() がするように、デスクリプタへの引 ... うと、簡単に ( partial() インスタンスを含む) 任意の callable を普通のインスタンスメソッドのように振舞わせること ... うようになりました。このことで、以前より遥かに幅広い callable をサポートするようになっています。それには __signa ...
https://man.plustar.jp/python/whatsnew/3.4.html - [similar]
Logging クックブック — Python 3.6.5 ドキュメント 8175
ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.6.5 ドキュメント » Python HOWTO » Logg ... s functions take a configurer parameter which is a callable # for configuring logging for that process. These ... は、指定できるファクトリ経由になります。ファクトリは callable で、 setLogRecordFactory() で登録でき、 getLogReco ... The values below are passed to the handler creator callable # as keyword arguments. 'owner' : [ 'pulse' , 'pul ... The values below are passed to the handler creator callable # as keyword arguments. 'owner' : [ 'pulse' , 'pul ...
https://man.plustar.jp/python/howto/logging-cookbook.html - [similar]
Python で Curses プログラミング — Python 3.6.5 ドキュメント 8021
ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.6.5 ドキュメント » Python HOWTO » Pyth ... () wrapper ( main ) The wrapper() function takes a callable object and does the initializations described abov ... port is present. wrapper() then runs your provided callable. Once the callable returns, wrapper() will restore ... the original state of the terminal. The callable is called inside a try ... except that catches exc ...
https://man.plustar.jp/python/howto/curses.html - [similar]
PREV 1 2 3 4 5 NEXT