Python 3.6.5 ドキュメント 検索

phrase: max: clip:
target: order:
Results of 1 - 10 of about 13 for pool (0.018 sec.)
10.1. itertools --- 効率的なループ実行のためのイテレータ生成関数 — Python 3.6.5... 13583
ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.6.5 ドキュメント » Python 標準ライブラ ... CD # combinations(range(4), 3) --> 012 013 023 123 pool = tuple ( iterable ) n = len ( pool ) if r > n : r ... eturn indices = list ( range ( r )) yield tuple ( pool [ i ] for i in indices ) while True : for i in rev ... ndices [ j ] = indices [ j - 1 ] + 1 yield tuple ( pool [ i ] for i in indices ) combinations() のコードは ... にも表現できます: def combinations ( iterable , r ): pool = tuple ( iterable ) n = len ( pool ) for indices ...
https://man.plustar.jp/python/library/itertools.html - [similar]
17.2. multiprocessing --- プロセスベースの並列処理 — Python 3.6.5 ドキュメント 12123
ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.6.5 ドキュメント » Python 標準ライブラ ... 存在しない API も導入されています。その最たるものが Pool オブジェクトです。これは複数の入力データに対して、 ... にインポートできるようにする一般的な方法を示します。 Pool を用いたデータ並列の基礎的な例は次の通りです: from ... multiprocessing import Pool def f ( x ): return x * x if __name__ == '__main__ ... ' : with Pool ( 5 ) as p : print ( p . map ( f , [ 1 , 2 , 3 ])) ...
https://man.plustar.jp/python/library/multiprocessing.html - [similar]
What's New in Python 2.6 — Python 3.6.5 ドキュメント 8428
ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.6.5 ドキュメント » What's New in Pytho ... 右されませんし、逆もしかりです。) 2 つのほかのクラス Pool と Manager はハイレベルインターフェイスです。 Pool ... たくさんのリクエストを追加出来ます。以下のコードでは Pool を使って 5 つのワーカープロセスにリクエストをばら撒 ... 果のリストを回収します: from multiprocessing import Pool def factorial ( N , dictionary ): "Compute a facto ... rial." ... p = Pool ( 5 ) result = p . map ( factorial , range ( 1 , 1 ...
https://man.plustar.jp/python/whatsnew/2.6.html - [similar]
What's New In Python 3.6 — Python 3.6.5 ドキュメント 8217
ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.6.5 ドキュメント » What's New in Pytho ... ndom() now blocks until the system urandom entropy pool is initialized to increase the security. See the P ... aka in bpo-26482 .) concurrent.futures ¶ The ThreadPoolExecutor class constructor now accepts an optional ... customize the names of the threads created by the pool. (Contributed by Gregory P. Smith in bpo-27664 .) ... ndom() now blocks until the system urandom entropy pool is initialized to increase the security. See the P ...
https://man.plustar.jp/python/whatsnew/3.6.html - [similar]
What's New In Python 3.3 — Python 3.6.5 ドキュメント 8111
ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.6.5 ドキュメント » What's New in Pytho ... s.starmap() との関係と同じ、既存の multiprocessing.pool.Pool.map() と map_async() に対応する multiprocessi ... ng.pool.Pool.starmap() と starmap_async() が追加されました ... ars Gustäbel in bpo-5689 .)。 tempfile ¶ tempfile.SpooledTemporaryFile の truncate() メソッドが size 引数を ...
https://man.plustar.jp/python/whatsnew/3.3.html - [similar]
17.1. threading --- スレッドベースの並列処理 — Python 3.6.5 ドキュメント 8058
ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.6.5 ドキュメント » Python 標準ライブラ ... iprocessing モジュールや concurrent.futures.ProcessPoolExecutor の利用をお勧めします。 ただし、I/Oバウンド ... 前にセマフォを初期化します: maxconnections = 5 # ... pool_sema = BoundedSemaphore ( value = maxconnections ) ... re() および release() メソッドを呼び出します: with pool_sema : conn = connectdb () try : # ... use connect ...
https://man.plustar.jp/python/library/threading.html - [similar]
Pythonモジュール索引 — Python 3.6.5 ドキュメント 8058
ナビゲーション 索引 モジュール | Python » 3.6.5 ドキュメント » Pythonモジュール索引 _ | a | b | ... tween process with shared objects. multiprocessing.pool Create pools of processes. multiprocessing.sharedc ...
https://man.plustar.jp/python/py-modindex.html - [similar]
17.4. concurrent.futures -- 並列タスク実行 — Python 3.6.5 ドキュメント 7988
ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.6.5 ドキュメント » Python 標準ライブラ ... 準のインタフェースを提供します。 非同期実行は ThreadPoolExecutor を用いてスレッドで実行することも、 Process ... 表現する Future オブジェクトを返します。 with ThreadPoolExecutor ( max_workers = 1 ) as executor : future = ... is retrieved from the iterator. When using ProcessPoolExecutor , this method chops iterables into a numbe ... r of chunks which it submits to the pool as separate tasks. The (approximate) size of these ...
https://man.plustar.jp/python/library/concurrent.futures.html - [similar]
21.13. ftplib --- FTPプロトコルクライアント — Python 3.6.5 ドキュメント 7988
ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.6.5 ドキュメント » Python 標準ライブラ ... README ... drwxr-sr-x 5 1176 1176 4096 Dec 19 2000 pool drwxr-sr-x 4 1176 1176 4096 Nov 17 2008 project dr ...
https://man.plustar.jp/python/library/ftplib.html - [similar]
ライブラリと拡張 FAQ — Python 3.6.5 ドキュメント 7935
ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.6.5 ドキュメント » Python よくある質問 ... は、新しい concurrent.futures モジュール、特に ThreadPoolExecutor クラスを使うことです。 もしくは、実行アルゴ ... .5 ) # Create queue q = queue . Queue () # Start a pool of 5 workers for i in range ( 5 ): t = threading . ... れは、新しい concurrent.futures モジュールの ProcessPoolExecutor クラスを使えば簡単です。 multiprocessing モ ...
https://man.plustar.jp/python/faq/library.html - [similar]
PREV 1 2 NEXT