Python 3.6.5 ドキュメント 検索

phrase: max: clip:
target: order:
Results of 1 - 10 of about 59 for yield (0.031 sec.)
10.1. itertools --- 効率的なループ実行のためのイテレータ生成関数 — Python 3.6.5... 12867
ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.6.5 ドキュメント » Python 標準ライブラ ... total = next ( it ) except StopIteration : return yield total for element in it : total = func ( total , e ... lement ) yield total func 引数の利用法はたくさんあります。最小値に ... C D E F for it in iterables : for element in it : yield element classmethod chain. from_iterable ( iterabl ... C D E F for it in iterables : for element in it : yield element itertools. combinations ( iterable , r ) ¶ ...
https://man.plustar.jp/python/library/itertools.html - [similar]
6. 式 (expression) — Python 3.6.5 ドキュメント 11977
ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.6.5 ドキュメント » Python 言語リファレ ... ict_display | set_display | generator_expression | yield_atom 6.2.1. 識別子 (identifier、または名前 (name)) ... expression . An asynchronous generator expression yields a new asynchronous generator object, which is an ... 非同期イテレータ (Asynchronous Iterator) ). 6.2.9. Yield 式 ¶ yield_atom ::= "(" yield_expression ")" yield ... _expression ::= "yield" [ expression_list | "from" expression ] The yield ...
https://man.plustar.jp/python/reference/expressions.html - [similar]
18.5.9. asyncio での開発 — Python 3.6.5 ドキュメント 10694
ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.6.5 ドキュメント » Python 標準ライブラ ... 表示します。 デバッグチェックの例: 定義されているが "yielded from" されなかったコルーチン のログを取ります 誤 ... . cancelled (): return # ... slow computation ... yield from fut # ... shield() 関数も、キャンセルを無視す ... ッド内で実行されることはありません。ただし、タスクが yield from を使用するとそのタスクはサスペンドされ、イベン ... の出力: Coroutine test () at test . py : 3 was never yielded from Coroutine object created at ( most recent c ...
https://man.plustar.jp/python/library/asyncio-dev.html - [similar]
10. 完全な文法仕様 — Python 3.6.5 ドキュメント 10621
ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.6.5 ドキュメント » Python 言語リファレ ... tmt : testlist_star_expr ( annassign | augassign ( yield_expr | testlist ) | ( '=' ( yield_expr | testlist_ ... _stmt | continue_stmt | return_stmt | raise_stmt | yield_stmt break_stmt : 'break' continue_stmt : 'continu ... e' return_stmt : 'return' [ testlist ] yield_stmt : yield_expr raise_stmt : 'raise' [ test [ 'f ... tom_expr : [ AWAIT ] atom trailer * atom : ( '(' [ yield_expr | testlist_comp ] ')' | '[' [ testlist_comp ] ...
https://man.plustar.jp/python/reference/grammar.html - [similar]
7. 単純文 (simple statement) — Python 3.6.5 ドキュメント 9789
ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.6.5 ドキュメント » Python 言語リファレ ... gnment_stmt | pass_stmt | del_stmt | return_stmt | yield_stmt | raise_stmt | break_stmt | continue_stmt | i ... tmt ::= ( target_list "=")+ ( starred_expression | yield_expression ) target_list ::= target ("," target )* ... nment_stmt ::= augtarget augop ( expression_list | yield_expression ) augtarget ::= identifier | attributer ... は、非同期ジェネレータ関数では文法エラーです。 7.7. yield 文 ¶ yield_stmt ::= yield_expression yield 文は意味 ...
https://man.plustar.jp/python/reference/simple_stmts.html - [similar]
18.5.3. タスクとコルーチン — Python 3.6.5 ドキュメント 9643
ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.6.5 ドキュメント » Python 標準ライブラ ... しても役に立ちます。ジェネレータベースのコルーチンは yield 構文を使う代わりに、 PEP 380 で導入された yield fr ... チンができること: result = await future or result = yield from future -- suspends the coroutine until the fu ... ies to tasks. result = await coroutine or result = yield from coroutine -- wait for another coroutine to pr ... outine that is waiting for this one using await or yield from . raise exception -- raise an exception in th ...
https://man.plustar.jp/python/library/asyncio-task.html - [similar]
18.5.5. ストリーム (コルーチンベースの API) — Python 3.6.5 ドキュメント 9424
ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.6.5 ドキュメント » Python 標準ライブラ ... 意図されている用途は書き込みです: w . write ( data ) yield from w . drain () トランスポートバッファのサイズが ... で、ブロックします。待機するものがなくなると、直ちに yield-from を続行します。 drain() から yield することによ ... に非常に有用で、コルーチンは write() 呼び出しの間に yield-from を行いません。 このメソッドは コルーチン です ... _echo_client ( message , loop ): reader , writer = yield from asyncio . open_connection ( '127.0.0.1' , 888 ...
https://man.plustar.jp/python/library/asyncio-stream.html - [similar]
関数型プログラミング HOWTO — Python 3.6.5 ドキュメント 9045
ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.6.5 ドキュメント » Python HOWTO » 関数 ... generate_ints ( N ): ... for i in range ( N ): ... yield i yield キーワードを含む関数はすべてジェネレータ関 ... プロトコルに対応したオブジェクトを返します。上の例で yield を実行したとき、 ジェネレータは return 文のようにし ... て i の値を出力します。 yield と return 文の大きな違いは、 yield に到達した段階で ... order ( t ): if t : for x in inorder ( t . left ): yield x yield t . label for x in inorder ( t . right ): ...
https://man.plustar.jp/python/howto/functional.html - [similar]
What's New in Python 2.5 — Python 3.6.5 ドキュメント 8520
ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.6.5 ドキュメント » What's New in Pytho ... def counter ( maximum ): i = 0 while i < maximum : yield i i += 1 counter(10) を呼び出すと、その結果は 0 か ... ら 10 までの値を返すイテレータです。 yield 文 (statement) に出会うと、そのイテレータは準備され ... テレータの next() メソッド呼び出しによって実行がその yield 文の次から再開します。 Python 2.3 では yield は文 ... した。しかるにそれでは値を返しません。Python 2.5 で yield は式 (expression) になりました。値を返すわけですか ...
https://man.plustar.jp/python/whatsnew/2.5.html - [similar]
What's New in Python 2.2 — Python 3.6.5 ドキュメント 8213
ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.6.5 ドキュメント » What's New in Pytho ... です: def generate_ints ( N ): for i in range ( N ): yield i 新しいキーワード yield がジェネレータのために導入 ... されました。 yield ステートメントを含むどんな関数もジェネレータ関数で ... の PEP 342 も参照して下さい。この 2.2 で導入時点の yield はステートメントではなく式に変更されています。---) ... プロトコルに対応したオブジェクトを返します。上の例で yield を実行したとき、ジェネレータは return 文のようにし ...
https://man.plustar.jp/python/whatsnew/2.2.html - [similar]
PREV 1 2 3 4 5 6 NEXT