Python 3.6.5 ドキュメント 検索

phrase: max: clip:
target: order:
Results of 11 - 20 of about 59 for yield (0.011 sec.)
What's New in Python 2.3 — Python 3.6.5 ドキュメント 8213
ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.6.5 ドキュメント » What's New in Pytho ... ェネレータは特別に有効化する必要なく、もうキーワード yield として、いつでもそこにあります。このセクションの残 ... です: def generate_ints ( N ): for i in range ( N ): yield i 新しいキーワード yield がジェネレータのために導入 ... されました。 yield ステートメントを含むどんな関数もジェネレータ関数で ... の PEP 342 も参照して下さい。この 2.2 で導入時点の yield はステートメントではなく式に変更されています。---) ...
https://man.plustar.jp/python/whatsnew/2.3.html - [similar]
29.6. contextlib --- with 文コンテキスト用ユーティリティ — Python 3.6.5 ドキュ... 8067
ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.6.5 ドキュメント » Python 標準ライブラ ... anager def tag ( name ): print ( "< %s >" % name ) yield print ( "</ %s >" % name ) >>> with tag ( "h1" ): ... タを返す必要があります。このイテレータは必ず値を1つ yield しなければなりません。 with 文の as 節が存在するな ... ーゲットへ束縛されることになります。 ジェネレータが yield を実行した箇所で with 文のネストされたブロックが実 ... 処理されない例外が発生した場合は、ジェネレータ内部の yield を実行した箇所で例外が再送出されます。なので、(もし ...
https://man.plustar.jp/python/library/contextlib.html - [similar]
32.2. ast --- 抽象構文木 — Python 3.6.5 ドキュメント 7776
ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.6.5 ドキュメント » Python 標準ライブラ ... nsion* generators) -- the grammar constrains where yield expressions can occur | Await(expr value) | Yield( ... expr? value) | YieldFrom(expr value) -- need sequences for compare to d ... ぞれのフィールドを (フィールド名, 値) のタプルとして yield します。 ast. iter_child_nodes ( node ) ¶ node の直 ... 接の子ノード全てを yield します。すなわち、yield されるのは、ノードであるよ ...
https://man.plustar.jp/python/library/ast.html - [similar]
26.1. typing --- 型ヒントのサポート — Python 3.6.5 ドキュメント 7776
ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.6.5 ドキュメント » Python 標準ライブラ ... , V_co] ) ¶ ジェネレータはジェネリック型 Generator[YieldType, SendType, ReturnType] によってアノテーションを ... ound () -> Generator [ int , float , str ]: sent = yield 0 while sent >= 0 : sent = yield round ( sent ) re ... ) -> Generator [ int , None , None ]: while True : yield start start += 1 代わりに、ジェネレータを Iterable ... [YieldType] や Iterator[YieldType] という返り値の型でアノ ...
https://man.plustar.jp/python/library/typing.html - [similar]
18.5.7. 同期プリミティブ — Python 3.6.5 ドキュメント 7688
ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.6.5 ドキュメント » Python 標準ライブラ ... チンが開始されます。 acquire() はコルーチンであり、 yield from で呼び出すべきです。 ロックはコンテキストマネ ... ートしています。コンテキストマネージャー表現では、 (yield from lock) のように使用します。 このクラスは スレッ ... ド安全ではありません 。 使い方: lock = Lock () ... yield from lock try : ... finally : lock . release () コ ... トマネージャーでの使用法: lock = Lock () ... with ( yield from lock ): ... ロックオブジェクトはロック状態か否 ...
https://man.plustar.jp/python/library/asyncio-sync.html - [similar]
18.5.6. サブプロセス — Python 3.6.5 ドキュメント 7469
ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.6.5 ドキュメント » Python 標準ライブラ ... in = None , stderr = None ) transport , protocol = yield from create # Wait for the subprocess exit using t ... he process_exited() method # of the protocol yield from exit_future # Close the stdout pipe transport ... de , stdout = asyncio . subprocess . PIPE ) proc = yield from create # Read one line of output data = yield ... scii' ) . rstrip () # Wait for the subprocess exit yield from proc . wait () return line if sys . platform ...
https://man.plustar.jp/python/library/asyncio-subprocess.html - [similar]
What's New In Python 3.3 — Python 3.6.5 ドキュメント 7469
ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.6.5 ドキュメント » What's New in Pytho ... 新たな文法機能: ジェネレータの委譲 . のための新しい yield from 式 str オブジェクト向けの u'unicode' 文法の再 ... PEP 380: サブジェネレータへの委譲構文 ¶ PEP 380 は yield from 式を追加します。これは ジェネレータ に、その操 ... かのジェネレータに委譲するための式です。これによって yield を含んでいるコードのセクションをほかのジェネレータ ... 来、その戻り値は委譲した側のジェネレータで使えます。 yield from 式がデザインされた主たる動機はサブジェネレータ ...
https://man.plustar.jp/python/whatsnew/3.3.html - [similar]
用語集 — Python 3.6.5 ドキュメント 7163
ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.6.5 ドキュメント » 用語集 ¶ >>> インタ ... ync def で定義されたコルーチン関数に似ていますが、 yield 式を持つ点で異なります。 yield 式は async for ルー ... terator です。 この awaitable オブジェクトは、次の yield 式までの非同期ジェネレータ関数の本体を実行します。 ... Each yield temporarily suspends processing, remembering the l ... erator を返す関数です。 通常の関数に似ていますが、 yield 式を持つ点で異なります。 yield 式は、 for ループで ...
https://man.plustar.jp/python/glossary.html - [similar]
29.12. inspect --- 活動中のオブジェクトの情報を取得する — Python 3.6.5 ドキュメ... 7163
ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.6.5 ドキュメント » Python 標準ライブラ ... ing ジェネレータが実行中かどうか gi_code コード gi_yieldfrom yield from でイテレートされているオブジェクト、 ... ジョン 3.5 で変更: ジェネレータに __qualname__ と gi_yieldfrom 属性が追加されました。 ジェネレータの __name__ ... レータを区別するのに使うこともできます。 def gen (): yield @types . coroutine def gen_coro (): yield assert n ... の場合に真を返します。例: >>> async def agen (): ... yield 1 ... >>> inspect . isasyncgenfunction ( agen ) Tr ...
https://man.plustar.jp/python/library/inspect.html - [similar]
32.12. dis --- Python バイトコードの逆アセンブラ — Python 3.6.5 ドキュメント 7090
ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.6.5 ドキュメント » Python 標準ライブラ ... ます。 GET_ITER ¶ TOS = iter(TOS) を実行します。 GET_YIELD_FROM_ITER ¶ TOS が generator iterator もしくは cor ... RETURN_VALUE ¶ 関数の呼び出し元へ TOS を返します。 YIELD_VALUE ¶ TOS をポップし、それをジェネレータ ( gener ... ator ) から yield します。 YIELD_FROM ¶ TOS をポップし、それを gener ... その __next__() メソッドを呼び出します。 新しい値が yield された場合は、それをスタックにプッシュします (イテ ...
https://man.plustar.jp/python/library/dis.html - [similar]
PREV 1 2 3 4 5 6 NEXT