Python 3.6.5 ドキュメント 検索

phrase: max: clip:
target: order:
Results of 1 - 10 of about 53 for iter (0.028 sec.)
8.4. collections.abc --- コレクションの抽象基底クラス — Python 3.6.5 ドキュメン... 15509
ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.6.5 ドキュメント » Python 標準ライブラ ... メソッド Container __contains__ Hashable __hash__ Iterable __iter__ Iterator Iterable __next__ __iter__ R ... eversible Iterable __reversed__ Generator Iterator send , throw c ... lose , __iter__ , __next__ Sized __len__ Callable __call__ Colle ... ction Sized , Iterable , Container __contains__ , __iter__ , __len__ ...
https://man.plustar.jp/python/library/collections.abc.html - [similar]
関数型プログラミング HOWTO — Python 3.6.5 ドキュメント 10820
ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.6.5 ドキュメント » Python HOWTO » 関数 ... 。まず関数型プログラミングという概念を紹介したあと、 iterator や generator のような言語機能、および itertool ... 語機能についてだけ知りたい人は、次の章の イテレータ (iterator) まで飛ばしてください。 プログラミング言語とは ... 書くだけで組み立てられるようになります。 イテレータ (iterator) ¶ まずは関数型スタイルのプログラムを書く際の基 ... ームに要素が残っていない場合、 __next__() は必ず StopIteration 例外を出します。ただし、イテレータの長さは有限 ...
https://man.plustar.jp/python/howto/functional.html - [similar]
10.1. itertools --- 効率的なループ実行のためのイテレータ生成関数 — Python 3.6.5... 10627
ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.6.5 ドキュメント » Python 標準ライブラ ... リ » 10. 関数型プログラミング用モジュール » 10.1. itertools --- 効率的なループ実行のためのイテレータ生成関 ... m(map(operator.mul, vector1, vector2)) 。 Infinite iterators: イテレータ 引数 結果 使用例 count() start, [ ... ... chain('ABC', 'DEF') --> A B C D E F chain.from_iterable() iterable p0, p1, ... plast, q0, q1, ... chai ... n.from_iterable(['ABC', 'DEF']) --> A B C D E F compress() dat ...
https://man.plustar.jp/python/library/itertools.html - [similar]
29.7. abc --- 抽象基底クラス — Python 3.6.5 ドキュメント 9019
ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.6.5 ドキュメント » Python 標準ライブラ ... f , index ): ... def __len__ ( self ): ... def get_iterator ( self ): return iter ( self ) class MyIterabl ... e ( ABC ): @abstractmethod def __iter__ ( self ): while False : yield None def get_itera ... tor ( self ): return self . __iter__ () @classmethod def __subclasshook__ ( cls , C ) ... : if cls is MyIterable : if any ( "__iter__" in B . __dict__ for B in ...
https://man.plustar.jp/python/library/abc.html - [similar]
3. Defining Extension Types: Assorted Topics — Python 3.6.5 ドキュメント 8722
ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.6.5 ドキュメント » Python インタプリタ ... rence enabler */ Py_ssize_t tp_weaklistoffset ; /* Iterators */ getiterfunc tp_iter ; iternextfunc tp_iter ... size , arg1 , arg2 , arg3 ); return result ; } /* Iterators */ getiterfunc tp_iter ; iternextfunc tp_iter ... next ; These functions provide support for the iterator protocol. Both handlers take exactly one param ... they should set an exception and return NULL . tp_iter corresponds to the Python __iter__() method, while ...
https://man.plustar.jp/python/extending/newtypes.html - [similar]
8. 複合文 (compound statement) — Python 3.6.5 ドキュメント 8632
ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.6.5 ドキュメント » Python 言語リファレ ... ルまたはリスト) や、その他の反復可能なオブジェクト (iterable object) 内の要素に渡って反復処理を行うために使 ... ったとき (シーケンスが空であったり、イテレータが StopIteration 例外を送出したなら、即座に)、 else 節があれば ... ¶ async_for_stmt ::= "async" for_stmt asynchronous iterable の iter の実装からは非同期のコードが呼べ、 asy ... nchronous iterator の next メソッドからも非同期のコードが呼べます ...
https://man.plustar.jp/python/reference/compound_stmts.html - [similar]
What's New in Python 2.2 — Python 3.6.5 ドキュメント 8632
ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.6.5 ドキュメント » What's New in Pytho ... の基礎的なアイディアは単純です。新しいビルトイン関数 iter(obj) または iter(C, sentinel) は、イテレータを取り ... 出すのに使います。 iter(obj) はオブジェクト obj についてのイテレータを返し ...iter(C, sentinel) は、そのイテレータが完了を表明する se ... ラスはオブジェクトの新しいイテレータを構築して返す __iter__() メソッドを定義出来ます; そのオブジェクト自身が ...
https://man.plustar.jp/python/whatsnew/2.2.html - [similar]
26.6. unittest.mock --- 入門 — Python 3.6.5 ドキュメント 8320
ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.6.5 ドキュメント » Python 標準ライブラ ... . Exception : Boom! 26.6.1.8. side_effect の関数と iterable ¶ side_effect には関数や iterable を設定するこ ... ともできます。 side_effect に iterable を設定するユースケースは、そのモックが複数回呼 ... そのたびに違う値を返したい場合です。 side_effect に iterable を設定すると、そのモックに対するすべての呼び出 ... しは iterable の次の値を返します: >>> mock = MagicMock ( sid ...
https://man.plustar.jp/python/library/unittest.mock-examples.html - [similar]
26.5. unittest.mock --- モックオブジェクトライブラリ — Python 3.6.5 ドキュメン... 8126
ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.6.5 ドキュメント » Python 標準ライブラ ... eturn_value によって) モックの通常の値を返します。 iterable が渡された場合、その値はイテレータを取り出すた ... り値を得ます (イテレート可能オブジェクトが尽きて StopIteration が発生するまで): >>> m = MagicMock ( side_eff ... >> m () Traceback (most recent call last): ... StopIteration もしイテレート可能オブジェクトの要素が例外だっ ... 、戻り値として返される代わりに例外が発生します: >>> iterable = ( 33 , ValueError , 66 ) >>> m = MagicMock ( ...
https://man.plustar.jp/python/library/unittest.mock.html - [similar]
32.2. ast --- 抽象構文木 — Python 3.6.5 ドキュメント 8022
ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.6.5 ドキュメント » Python 標準ライブラ ... eyword in target languages | For(expr target, expr iter, stmt* body, stmt* orelse) | AsyncFor(expr target, ... expr iter, stmt* body, stmt* orelse) | While(expr test, stmt ... ot | In | NotIn comprehension = (expr target, expr iter, expr* ifs, int is_async) excepthandler = ExceptHa ... インタプリタをクラッシュさせることができます。 ast. literal_eval ( node_or_string ) ¶ 式ノードまたは Python ...
https://man.plustar.jp/python/library/ast.html - [similar]
PREV 1 2 3 4 5 6 NEXT