per page, with , order by , clip by
Results of 1 - 10 of about 25 for asynchronous (0.008 sec.)
6. 式 (expression) 15426
6. 式 (expression) この章では、Python の式における個々の要素の意味について解説します。 構文上の注意: この章以降では、 文法の表記法 を字句解析ではなく構文の記述に使います。 構文規則の (選択肢の 1 つの) 形式が次のように記述され、 name : other ... スコープでは禁止されています。 Since Python 3.6, in an async def function, an async for clause may be used to iterate over a asynchronous iterator . A comprehension in an async def function may consist of either a for or async for clause following the leading ... ay also use await expressions. If a comprehension contains async for clauses, or if it contains await expressions or other asynchronous comprehensions anywhere except the iterable expression in the leftmost for clause, it is called an asynchronous comprehens ... ion . An asynchronous comprehension may suspend the execution of the coroutine function in which it appears. See also PEP 530 . Added in version ...
https://man.mtool.work/python/3.14/reference/expressions.html
A Conceptual Overview of asyncio 9946
A Conceptual Overview of asyncio この HOWTO では、 asyncio の基本的な仕組みをしっかり理解できるように説明します。 推奨される書き方がどのように動き、なぜ推奨されるのかを理解する助けになるでしょう。 asyncio の主要な概念について、疑問を持ってい ... task ( other_work ()), asyncio . create_task ( other_work ()), asyncio . create_task ( other_work ()) ] print ( "Beginning asynchronous sleep at time: " f " { datetime . datetime . now () . strftime ( "%H:%M:%S" ) } ." ) await asyncio . create_task ( async_s ... leep ( 3 )) print ( "Done asynchronous sleep at time: " f " { datetime . datetime . now () . strftime ( "%H:%M:%S" ) } ." ) # asyncio.gather は実質的に集合内の各 ... te while loop. Given this helper task is only invoked once per cycle of the event loop, you'd be correct to note that this asynchronous sleep will sleep at least three seconds, rather than exactly three seconds. Note this is also true of asyncio.sleep . clas ...
https://man.mtool.work/python/3.14/howto/a-conceptual-overview-of-asyncio.html
用語集 9381
用語集 >>> 対話型 シェルにおけるデフォルトの Python プロンプトです。インタープリターで対話的に実行されるコード例でよく見られます。 ... 次のものが考えられます: 対話型 ( interactive ) シェルにおいて、インデントされたコードブロック、対応する左 ... 価された値はローカル変数に割り当てられます。 仮引数 、FAQ の 実引数と仮引数の違いは何ですか? 、 PEP 362 を参照してください。 asynchronous context manager (非同期コンテキストマネージャ) __aenter__() と __aexit__() メソッドを定義することで async with 文内の環境を ... 管理するオブジェクトです。 PEP 492 で導入されました。 asynchronous generator 文脈に応じて、 非同期ジェネレータ関数 または 非同期ジェネレータイテレータ のどちらかを指すために非公式に使われる ... 関数 と 非同期ジェネレータイテレータ は、実際にはあまり使われません。 ほとんどの場合、「非同期ジェネレータ」だけで十分です。 asynchronous generator function (非同期ジェネレータ関数) 非同期ジェネレータイテレータ を返す関数です。 async def で定義されたコルーチン ...
https://man.mtool.work/python/3.14/glossary.html
inspect --- 活動中のオブジェクトを調査する 9381
inspect --- 活動中のオブジェクトを調査する ソースコード: Lib/inspect.py inspect モジュールは、モジュール、クラス、メソッド、関数、トレースバック、フレームオブジェクト、コードオブジェクトなど、実行中のオブジェクトの情報を取得する便利な関数を ... t isawaitable ( gen_coro ()) Added in version 3.5. inspect. isasyncgenfunction ( object ) オブジェクトが非同期ジェネレータ asynchronous generator 関数である場合に True を返します。使用例: >>> async def agen (): ... yield 1 ... >>> inspect . isasyncgenfunctio ... True Added in version 3.6. バージョン 3.8 で変更: functools.partial() でラップされた関数でも、元の関数が非同期ジェネレータ asynchronous generator 関数であれば True を返すようになりました。 バージョン 3.10.6 で変更: ダックタイピング による関数のようなオブジェ ... 関数でも、元の関数が 非同期ジェネレータ 関数なら True を返すようになりました。 inspect. isasyncgen ( object ) オブジェクトが asynchronous generator 関数によって生成された asynchronous generator iterator である場合に True を返します。 Added in version 3.6. insp ...
https://man.mtool.work/python/3.14/library/inspect.html
asyncio での開発 9199
asyncio での開発 非同期プログラミングは、従来の「逐次的」なプログラミングとは異なります。 このページはよくある間違いや落とし穴を列挙し、それらを回避する方法を説明します。 デバッグモード asyncio はデフォルトで本運用モードで実行されます。いっ ... r c in cursor_gen : async with contextlib . aclosing ( rows ()) as rows_gen : async for r in rows_gen : break break Create asynchronous generators only when the event loop is running It is recommended to create asynchronous generators only after the event lo ... l_complete return future . result () ~~~~~~~~~~~~~^^ File "test.py" , line 36 , in amain await fb RuntimeError : anext (): asynchronous generator is already running そのため、並行して動くタスクや複数のイベントループで非同期ジェネレーターを共有して使うことは避 ...
https://man.mtool.work/python/3.14/library/asyncio-dev.html
contextlib --- with 文コンテキスト用ユーティリティ 8817
contextlib --- with 文コンテキスト用ユーティリティ ソースコード: Lib/contextlib.py このモジュールは with 文に関わる一般的なタスクのためのユーティリティを提供します。詳しい情報は、 コンテキストマネージャ型 と with文とコンテキストマネージャ を ... self を返すデフォルトの実装があり、 __aexit__() はデフォルトで None を返す抽象メソッドです。 非同期コンテキストマネージャ (Asynchronous Context Manager) の定義も参照してください。 Added in version 3.7. @ contextlib. contextmanager この関数は with 文コンテキス ... 。新しいクラスや __aenter__() と __aexit__() メソッドを個別に定義する必要はありません。このデコレータは非同期ジェネレータ ( asynchronous generator ) 関数に適用しなければなりません。 簡単な例: from contextlib import asynccontextmanager @asynccontextmanager asy ... session を使って HTTP リクエストを送信します Added in version 3.7. バージョン 3.10 で変更: 非同期コンテキストマネージャ ( asynchronous context manager ) のサポートが追加されました。 contextlib. suppress ( * exceptions ) with 文の内部で指定された例外の発生を ...
https://man.mtool.work/python/3.14/library/contextlib.html
Pythonモジュール索引 8817
Pythonモジュール索引 _ | a | b | c | d | e | f | g | h | i | j | k | l | m | n | o | p | q | r | s | t | u | v | w | x | z _ __future__ Future statement definitions __main__ The environment where top-level code is run. Covers command-line i ... iformly typed numeric values. ast Abstract Syntax Tree classes and manipulation. asynchat 非推奨: Removed in 3.12. asyncio Asynchronous I/O. asyncore 非推奨: Removed in 3.12. atexit Register and execute cleanup functions. audioop 非推奨: Removed in 3.13. b b ... ical analysis for Unix shell-like languages. shutil High-level file operations, including copying. signal Set handlers for asynchronous events. site Module responsible for site-specific configuration. sitecustomize smtpd 非推奨: Removed in 3.12. smtplib SMTP ...
https://man.mtool.work/python/3.14/py-modindex.html
Python ドキュメントの目次 8435
Python ドキュメントの目次 What's New in Python What's new in Python 3.14 概要 -- リリースハイライト 新しい機能 PEP 649 と PEP 749 : アノテーションの遅延評価 PEP 734 : 複数インタープリタ機能が標準ライブラリに追加 PEP 750 : テンプレート文字列 ... 2.8.3. ジェネレータ関数 (generator function) 3.2.8.4. コルーチン関数 (coroutine function) 3.2.8.5. 非同期ジェネレータ関数 (asynchronous generator function) 3.2.8.6. 組み込み関数 (built-in function) 3.2.8.7. 組み込みメソッド (built-in method) 3.2.8.8. クラス ... ド検索 3.4. コルーチン 3.4.1. 待機可能オブジェクト (Awaitable Object) 3.4.2. コルーチンオブジェクト 3.4.3. 非同期イテレータ (Asynchronous Iterator) 3.4.4. 非同期コンテキストマネージャ (Asynchronous Context Manager) 4. 実行モデル 4.1. プログラムの構造 4.2. 名前 ... 9. ジェネレータ式 6.2.10. Yield 式 6.2.10.1. Generator-iterator methods 6.2.10.2. 使用例 6.2.10.3. 非同期ジェネレータ関数 (asynchronous generator function) 6.2.10.4. Asynchronous generator-iterator methods 6.3. プライマリ 6.3.1. 属性参照 6.3.2. 添字表記とスラ ...
https://man.mtool.work/python/3.14/contents.html
collections.abc --- コンテナの抽象基底クラス 8435
collections.abc --- コンテナの抽象基底クラス Added in version 3.3: 以前はこのモジュールは collections モジュールの一部でした。 ソースコード: Lib/_collections_abc.py このモジュールは、 抽象基底クラス を提供します。抽象基底クラスは、クラスが特 ... or と同様です。 Added in version 3.5. class collections.abc. AsyncIterable __aiter__ メソッドを提供するクラスの ABC です。 asynchronous iterable の定義も参照してください。 Added in version 3.5. class collections.abc. AsyncIterator __aiter__ および __anext__ ... メソッドを提供するクラスの ABC です。 asynchronous iterator の定義も参照してください。 Added in version 3.5. class collections.abc. AsyncGenerator PEP 525 と PEP 492 に定義さ ...
https://man.mtool.work/python/3.14/library/collections.abc.html
8. 複合文 (compound statement) 8053
8. 複合文 (compound statement) 複合文には、他の文 (のグループ) が入ります; 複合文は、中に入っている他の文の実行の制御に何らかのやり方で影響を及ぼします。一般的には、複合文は複数行にまたがって書かれますが、全部の文を一行に連ねた単純な書き方も ... 前は、コルーチン関数の本体の中でのみキーワードとして扱われていました。 8.9.2. async for 文 async_for_stmt : "async" for_stmt asynchronous iterable は、その __anext__ メソッドで非同期なコードを実行可能な、 asynchronous iterator を直接返す __aiter__ メソッドを提 ... 関数の本体の外で async for 文を使用すると SyntaxError になります。 8.9.3. async with 文 async_with_stmt : "async" with_stmt asynchronous context manager は、 enter メソッドと exit メソッド内部で実行を一時停止できる context manager です。 以下のコード: async w ...
https://man.mtool.work/python/3.14/reference/compound_stmts.html
PREV 1 2 3 NEXT