Python 3.6.5 ドキュメント 検索

phrase: max: clip:
target: order:
Results of 1 - 10 of about 31 for queue (0.052 sec.)
17.7. queue --- 同期キュークラス — Python 3.6.5 ドキュメント 14236
ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.6.5 ドキュメント » Python 標準ライブラ ... リ » 17. 並行実行 » 17.7. queue --- 同期キュークラス ¶ ソースコード: Lib/queue.py ... レッドプログラミングで特に有益です。このモジュールの Queue クラスは、必要なすべてのロックセマンティクスを実装 ... してください。 The module implements three types of queue, which differ only in the order in which the entri ... es are retrieved. In a FIFO queue, the first tasks added are the first retrieved. In ...
https://man.plustar.jp/python/library/queue.html - [similar]
17.2. multiprocessing --- プロセスベースの並列処理 — Python 3.6.5 ドキュメント 12181
ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.6.5 ドキュメント » Python 標準ライブラ ... in__' : mp . set_start_method ( 'spawn' ) q = mp . Queue () p = mp . Process ( target = foo , args = ( q ,) ... __' : ctx = mp . get_context ( 'spawn' ) q = ctx . Queue () p = ctx . Process ( target = foo , args = ( q , ... されています。それぞれ以下に詳細を示します: キュー (Queue) Queue クラスは queue.Queue クラスとほとんど同じよ ... 例を示します: from multiprocessing import Process , Queue def f ( q ): q . put ([ 42 , None , 'hello' ]) if ...
https://man.plustar.jp/python/library/multiprocessing.html - [similar]
18.5.8. キュー — Python 3.6.5 ドキュメント 11291
ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.6.5 ドキュメント » Python 標準ライブラ ... タスク » 18.5.8. キュー ¶ ソースコード: Lib/asyncio/queues.py キュー: Queue PriorityQueue LifoQueue asyncio ... queue API は queue モジュールのクラス ( Queue , PriorityQueue , LifoQ ... 後にタスクをキャンセルすることが出来ます。 18.5.8.1. Queue ¶ class asyncio. Queue ( maxsize=0 , * , loop=None ... で除去されるまでブロックします。 標準ライブラリの queue とは異なり、 qsize() で確実にキューの長さを確認でき ...
https://man.plustar.jp/python/library/asyncio-queue.html - [similar]
Logging クックブック — Python 3.6.5 ドキュメント 9625
ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.6.5 ドキュメント » Python HOWTO » Logg ... 、パフォーマンスが重要なスレッドからアクセスされる、 QueueHandler だけをアタッチした logger です。この logger ... キューへの書き込みは通常すぐに完了しますが、念の為に queue.Full 例外をキャッチする必要があるかもしれません。も ... ッドを持つライブラリの開発者であるなら、このことを ( QueueHandler だけをアタッチした logger についての言及を添 ... ドキュメントに書いておきましょう。 2つ目のパートは QueueHandler の対向として作られた QueueListener です。 Q ...
https://man.plustar.jp/python/howto/logging-cookbook.html - [similar]
18.7. asynchat --- 非同期ソケットコマンド/レスポンスハンドラ — Python 3.6.5 ド... 8994
ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.6.5 ドキュメント » Python 標準ライブラ ... ispatcher , async_chat allows you to define a FIFO queue of producers . A producer need have only one metho ... he async_chat object removes the producer from the queue and starts using the next producer, if any. When t ... he producer queue is empty the handle_write() method does nothing. Y ... e_when_done ( ) ¶ Pushes a None on to the producer queue. When this producer is popped off the queue it cau ...
https://man.plustar.jp/python/library/asynchat.html - [similar]
ライブラリと拡張 FAQ — Python 3.6.5 ドキュメント 8606
ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.6.5 ドキュメント » Python よくある質問 ... な仕組みを使う方が良いでしょう。 1 つのアイディアは queue モジュールを使って、キューオブジェクトを作り、各ス ... たい場合は、自身の手でロジックを書くこともできます。 queue モジュールを使って、ジョブのリストを含むキューを作 ... ってください。 Queue クラスはオブジェクトのリストを保持し、キューに要素 ... ここにちょっとした例があります: import threading , queue , time # The worker thread gets jobs off the queue ...
https://man.plustar.jp/python/faq/library.html - [similar]
5. データ構造 — Python 3.6.5 ドキュメント 8056
ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.6.5 ドキュメント » Python チュートリア ... 5.1.2. リストをキューとして使う ¶ リストをキュー (queue) として使うことも可能です。この場合、最初に追加した ... ようにします: >>> from collections import deque >>> queue = deque ([ "Eric" , "John" , "Michael" ]) >>> queu ... e . append ( "Terry" ) # Terry arrives >>> queue . append ( "Graham" ) # Graham arrives >>> queue . ... eft () # The first to arrive now leaves 'Eric' >>> queue . popleft () # The second to arrive now leaves 'Jo ...
https://man.plustar.jp/python/tutorial/datastructures.html - [similar]
What's New in Python 2.6 — Python 3.6.5 ドキュメント 8007
ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.6.5 ドキュメント » What's New in Pytho ... import time from multiprocessing import Process , Queue def factorial ( queue , N ): "Compute a factorial. ... , N + 1 ): fact = fact * i # Put the result on the queue queue . put ( fact ) if __name__ == '__main__' : q ... ueue = Queue () N = 5 p = Process ( target = factorial , args = ... ( queue , N )) p . start () p . join () result = queue . g ...
https://man.plustar.jp/python/whatsnew/2.6.html - [similar]
Pythonモジュール索引 — Python 3.6.5 ドキュメント 7910
ナビゲーション 索引 モジュール | Python » 3.6.5 ドキュメント » Pythonモジュール索引 _ | a | b | ... ure hash and message digest algorithms. heapq Heap queue algorithm (a.k.a. priority queue). hmac Keyed-Hash ... Documentation generator and online help system. q queue A synchronized queue class. quopri Encode and deco ...
https://man.plustar.jp/python/py-modindex.html - [similar]
35.6. termios --- POSIX スタイルの端末制御 — Python 3.6.5 ドキュメント 7668
ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.6.5 ドキュメント » Python 標準ライブラ ... 力が転送されるまで待ちます。 termios. tcflush ( fd , queue ) ¶ ファイル記述子 fd にキューされたデータを無視し ... ます。どのキューかは queue セレクタで指定します: TCIFLUSH は入力キュー、 TCOF ...
https://man.plustar.jp/python/library/termios.html - [similar]
PREV 1 2 3 4 NEXT