Results of 1 - 7 of about 7 for InterpreterPoolExecutor (0.006 sec.)
- concurrent.futures --- 並列タスク実行 13195
- concurrent.futures --- 並列タスク実行 Added in version 3.2. ソースコード: Lib/concurrent/futures/thread.py 、 Lib/concurrent/futures/process.py および Lib/concurrent/futures/interpreter.py concurrent.futures モジュールは、呼び出し可能オブジ
...ェクトを非同期に実行するための高水準インターフェースを提供します。 非同期実行には、 ThreadPoolExecutor または InterpreterPoolExecutor によるスレッド、あるいは ProcessPoolExecutor による別プロセスを使えます。 いずれも、抽象クラス Executor で定義された同じイ...では、 chunksize に大きな値を使うと、デフォルトのサイズ 1 に比べて性能が大幅に向上する場合があります。 ThreadPoolExecutor と InterpreterPoolExecutor では、 chunksize は効果がありません。 バージョン 3.5 で変更: chunksize 引数が追加されました。 バージョン 3.14 で変更: buff...print ( ' %r generated an exception: %s ' % ( url , exc )) else : print ( ' %r page is %d bytes' % ( url , len ( data ))) InterpreterPoolExecutor Added in version 3.14. InterpreterPoolExecutor クラスは、インタープリタのプールを使って呼び出しを非同期に実行します。 Thre... - https://man.mtool.work/python/3.14/library/concurrent.futures.html
- 並行実行 9942
- 並行実行 この章で説明するモジュールは、コードの並行実行をサポートします。 適切なツールは、実行するタスク (CPU バウンドか I/O バウンドか) と、好みの開発スタイル (イベント駆動の協調的マルチタスクかプリエンプティブマルチタスクか) によって異なり
...ncurrent パッケージ concurrent.futures --- 並列タスク実行 Executor オブジェクト ThreadPoolExecutor ThreadPoolExecutor の例 InterpreterPoolExecutor ProcessPoolExecutor ProcessPoolExecutor の例 Future オブジェクト モジュール関数 例外クラス concurrent.interpreters --- 同じ... - https://man.mtool.work/python/3.14/library/concurrency.html
- asyncio での開発 8324
- asyncio での開発 非同期プログラミングは、従来の「逐次的」なプログラミングとは異なります。 このページはよくある間違いや落とし穴を列挙し、それらを回避する方法を説明します。 デバッグモード asyncio はデフォルトで本運用モードで実行されます。いっ
...メインスレッド内で実行しなければなりません。 loop.run_in_executor() メソッドを concurrent.futures.ThreadPoolExecutor または InterpreterPoolExecutor と組み合わせると、イベントループの OS スレッドをブロックせずに、別の OS スレッドでブロッキングコードを実行できます。 現在の... - https://man.mtool.work/python/3.14/library/asyncio-dev.html
- イベントループ 8324
- イベントループ ソースコード: Lib/asyncio/events.py , Lib/asyncio/base_events.py まえがき イベントループは全ての asyncio アプリケーションの中核をなす存在です。イベントループは非同期タスクやコールバックを実行し、ネットワーク I/O を処理し、サブ
...) print ( 'custom process pool' , result ) # 4. 自分で作成したインタープリタプールで実行する: with concurrent . futures . InterpreterPoolExecutor () as pool : result = await loop . run_in_executor ( pool , cpu_bound ) print ( 'custom interpreter pool' , result ) if __...() が使うデフォルトの Executor に設定します。 executor は ThreadPoolExecutor のインスタンスでなければなりません。 これには InterpreterPoolExecutor も含まれます。 バージョン 3.11 で変更: executor は ThreadPoolExecutor のインスタンスでなければならなくなりました。 エラー処... - https://man.mtool.work/python/3.14/library/asyncio-eventloop.html
- concurrent.interpreters --- 同じプロセス内の複数のインタープリタ 8324
- concurrent.interpreters --- 同じプロセス内の複数のインタープリタ Added in version 3.14. ソースコード: Lib/concurrent/interpreters concurrent.interpreters モジュールは、低水準の _interpreters モジュールの上に、より高水準のインターフェースを構
...り、それだけでは役に立ちません。 実際の並行処理は、別途 スレッド によって利用できます。 後述の説明 を参照してください。 参考 InterpreterPoolExecutor 使い慣れたインターフェースで、スレッドとインタープリタを組み合わせます。 拡張モジュールを分離する 複数のインタープリタをサ... - https://man.mtool.work/python/3.14/library/concurrent.interpreters.html
- What's new in Python 3.14 7924
- What's new in Python 3.14 エディタ : Adam Turner と Hugo van Kemenade この記事では Python 3.13 と比較した Python 3.14 の新機能を解説します。Python 3.14 は2025年10月7日にリリースされました。全詳細については 変更履歴 をご覧ください。 参考 PEP
...れているフリースレッド対応作業により、複数インタープリタの対応も早まると思われます。 他の 3.14 追加要素: concurrent.futures.InterpreterPoolExecutor 。 (Eric Snow の貢献による gh-134939 ) 参考 PEP 734 PEP 750 : テンプレート文字列リテラル テンプレート文字列とは、カスタムの...これは 環境変数 で制御できます。 (Hugo van Kemenade が gh-128317 で貢献しました。) concurrent.futures 新しい executor クラス InterpreterPoolExecutor を追加しました。 同じプロセス内の複数の Python インタープリタ (「サブインタープリタ」) を Python コードから利用できます。... - https://man.mtool.work/python/3.14/whatsnew/3.14.html
- Python ドキュメントの目次 7524
- Python ドキュメントの目次 What's New in Python What's new in Python 3.14 概要 -- リリースハイライト 新しい機能 PEP 649 と PEP 749 : アノテーションの遅延評価 PEP 734 : 複数インタープリタ機能が標準ライブラリに追加 PEP 750 : テンプレート文字列
...ncurrent パッケージ concurrent.futures --- 並列タスク実行 Executor オブジェクト ThreadPoolExecutor ThreadPoolExecutor の例 InterpreterPoolExecutor ProcessPoolExecutor ProcessPoolExecutor の例 Future オブジェクト モジュール関数 例外クラス concurrent.interpreters --- 同じ... - https://man.mtool.work/python/3.14/contents.html
PREV
1
NEXT