per page, with , order by , clip by
Results of 1 - 10 of about 246 for Running (0.048 sec.)
変更履歴 — Python 3.14.8 ドキュメント 11319
ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » What's New in Python » 変更履歴 テーマ 自動 ライト ダーク | 変更履歴 ¶ Python next ¶ Release date: XXXX-XX-XX セキュリティ ¶ gh-157265 : In tarfile , when extrac ... ins ¶ gh-158364 : Fix crash when sys._current_frames() or sys._current_exceptions() is called while another interpreter is running. gh-158254 : Reverse iterators over a dict and its views now raise RuntimeError if the dictionary's keys change during ite ... e internal HAMT iterators, which back iteration over a contextvars.Context , with the garbage collector. A reference cycle running through such an iterator was never collected, leaking the whole context it iterated over. gh-154937 : Fix a data race on t ... Tab in a string that is not the start of a file name inserts a tab instead of opening the completion list. gh-68453 : Fix running IDLE with the -s option together with -c, -r or -: the command or script now runs after the startup file, without an error ...
https://man.mtool.work/python/3.14/whatsnew/changelog.html
Coroutines and tasks — Python 3.14.8 ドキュメント 9465
ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » The Python standard library » ネットワーク通信とプロセス間通信 » asyncio --- 非同期 I/O » Coroutines and tasks テーマ 自動 ライト ダーク | Coroutines and tasks ¶ ... led later. If eager_start is not passed the mode set by loop.set_task_factory() will be used. その Task オブジェクトは get_running_loop() から返されたループの中で実行されます。現在のスレッドに実行中のループが無い場合は、 RuntimeError が送出されます。 注 ... up the internal cancellation used to "wake up" their __aexit__() with cancellation requests for the task in which they are running made by other parties. In particular, when one task group is syntactically nested in another, and both experience an excep ... 刻を5秒間、毎秒表示するコルーチンの例: import asyncio import datetime as dt async def display_date (): loop = asyncio . get_running_loop () end_time = loop . time () + 5.0 while True : print ( dt . datetime . now ()) if ( loop . time () + 1.0 ) >= end_ti ...
https://man.mtool.work/python/3.14/library/asyncio-task.html
Coroutines and tasks — Python 3.14.8 ドキュメント 9465
ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » The Python standard library » ネットワーク通信とプロセス間通信 » asyncio --- 非同期 I/O » Coroutines and tasks テーマ 自動 ライト ダーク | Coroutines and tasks ¶ ... led later. If eager_start is not passed the mode set by loop.set_task_factory() will be used. その Task オブジェクトは get_running_loop() から返されたループの中で実行されます。現在のスレッドに実行中のループが無い場合は、 RuntimeError が送出されます。 注 ... up the internal cancellation used to "wake up" their __aexit__() with cancellation requests for the task in which they are running made by other parties. In particular, when one task group is syntactically nested in another, and both experience an excep ... 刻を5秒間、毎秒表示するコルーチンの例: import asyncio import datetime as dt async def display_date (): loop = asyncio . get_running_loop () end_time = loop . time () + 5.0 while True : print ( dt . datetime . now ()) if ( loop . time () + 1.0 ) >= end_ti ...
https://man.mtool.work/python/3.14/library/asyncio-task.html
concurrent.interpreters --- Multiple interpreters in the same process — Python ... 9293
ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » The Python standard library » 並行実行 » concurrent.interpreters --- Multiple interpreters in the same process テーマ 自動 ライト ダーク | concurrent.interpreter ... preters module. The module is primarily meant to provide a basic API for managing interpreters (AKA "subinterpreters") and running things in them. Running mostly involves switching to an interpreter (in the current thread) and calling a function in that ... do not use multiple interpreters in security-sensitive situations, where they shouldn't have access to each other's data. Running in an Interpreter ¶ Running in a different interpreter involves switching to it in the current thread and then calling som ... ad, where you switch to another interpreter and run what you want there. Each actual thread in Python, even if you're only running in the main thread, has its own current execution context. Multiple threads can use the same interpreter or different ones ...
https://man.mtool.work/python/3.14/library/concurrent.interpreters.html
concurrent.interpreters --- Multiple interpreters in the same process — Python ... 9293
ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » The Python standard library » 並行実行 » concurrent.interpreters --- Multiple interpreters in the same process テーマ 自動 ライト ダーク | concurrent.interpreter ... preters module. The module is primarily meant to provide a basic API for managing interpreters (AKA "subinterpreters") and running things in them. Running mostly involves switching to an interpreter (in the current thread) and calling a function in that ... do not use multiple interpreters in security-sensitive situations, where they shouldn't have access to each other's data. Running in an Interpreter ¶ Running in a different interpreter involves switching to it in the current thread and then calling som ... ad, where you switch to another interpreter and run what you want there. Each actual thread in Python, even if you're only running in the main thread, has its own current execution context. Multiple threads can use the same interpreter or different ones ...
https://man.mtool.work/python/3.14/library/concurrent.interpreters.html
itertools --- 効率的なループ用のイテレータ生成関数群 — Python 3.14.8 ドキュメン... 8537
ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » The Python standard library » 関数型プログラミング用モジュール » itertools --- 効率的なループ用のイテレータ生成関数群 テーマ 自動 ライト ダーク | itertools --- 効 ... input iterable. およそ次と等価です: def accumulate ( iterable , function = operator . add , * , initial = None ): 'Return running totals' # accumulate([1,2,3,4,5]) → 1 3 6 10 15 # accumulate([1,2,3,4,5], initial=100) → 100 101 103 106 110 115 # accumul ... StopIteration : return yield total for element in iterator : total = function ( total , element ) yield total To compute a running minimum, set function to min() . For a running maximum, set function to max() . Or for a running product, set function to ... interest and apply payments: >>> data = [ 3 , 4 , 6 , 2 , 1 , 9 , 0 , 7 , 5 , 8 ] >>> list ( accumulate ( data , max )) # running maximum [3, 4, 6, 6, 6, 9, 9, 9, 9, 9] >>> list ( accumulate ( data , operator . mul )) # running product [3, 12, 72, 144, ...
https://man.mtool.work/python/3.14/library/itertools.html
itertools --- 効率的なループ用のイテレータ生成関数群 — Python 3.14.8 ドキュメン... 8366
ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » The Python standard library » 関数型プログラミング用モジュール » itertools --- 効率的なループ用のイテレータ生成関数群 テーマ 自動 ライト ダーク | itertools --- 効 ... input iterable. およそ次と等価です: def accumulate ( iterable , function = operator . add , * , initial = None ): 'Return running totals' # accumulate([1,2,3,4,5]) → 1 3 6 10 15 # accumulate([1,2,3,4,5], initial=100) → 100 101 103 106 110 115 # accumul ... StopIteration : return yield total for element in iterator : total = function ( total , element ) yield total To compute a running minimum, set function to min() . For a running maximum, set function to max() . Or for a running product, set function to ... interest and apply payments: >>> data = [ 3 , 4 , 6 , 2 , 1 , 9 , 0 , 7 , 5 , 8 ] >>> list ( accumulate ( data , max )) # running maximum [3, 4, 6, 6, 6, 9, 9, 9, 9, 9] >>> list ( accumulate ( data , operator . mul )) # running product [3, 12, 72, 144, ...
https://man.mtool.work/python/3.14/library/itertools.html
ライブラリと拡張 FAQ — Python 3.14.8 ドキュメント 7438
ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » Python よくある質問 » ライブラリと拡張 FAQ テーマ 自動 ライト ダーク | ライブラリと拡張 FAQ ¶ ライブラリ一般の質問 ¶ 作業 X を行うためのモジュールやアプリケーショ ... の作業はないとして終了 (exit) する。 # (現実的には ワーカーは終了する (terminated) まで走り続ける) def worker (): print ( 'Running worker' ) time . sleep ( 0.1 ) while True : try : arg = q . get ( block = False ) except queue . Empty : print ( 'Worker' ... ), end = ' ' ) print ( 'queue empty' ) break else : print ( 'Worker' , threading . current_thread (), end = ' ' ) print ( 'running with argument' , arg ) time . sleep ( 0.5 ) # キュー作成 q = queue . Queue () # 5つのワーカープールをスタート for i in ran ... ( i ) # スレッドの作業時間を確保 print ( 'Main thread sleeping' ) time . sleep ( 5 ) 実行時には、以下のように出力されます: Running worker Running worker Running worker Running worker Running worker Main thread sleeping Worker <Thread(worker 1, started 1 ...
https://man.mtool.work/python/3.14/faq/library.html
concurrent.futures --- 並列タスク実行 — Python 3.14.8 ドキュメント 7267
ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » The Python standard library » 並行実行 » concurrent.futures --- 並列タスク実行 テーマ 自動 ライト ダーク | concurrent.futures --- 並列タスク実行 ¶ Added in versi ... 体は終了しません。 If cancel_futures is True , this method will cancel all pending futures that the executor has not started running. Any futures that are completed or running won't be cancelled, regardless of the value of cancel_futures . If both cancel_ ... futures and wait are True , all futures that the executor has started running will be completed prior to this method returning. The remaining futures are cancelled. You can avoid having to call this m ... rder to signal threads to exit gracefully. For this reason, it is recommended that ThreadPoolExecutor not be used for long-running tasks. initializer is an optional callable that is called at the start of each worker thread; initargs is a tuple of argum ...
https://man.mtool.work/python/3.14/library/concurrent.futures.html
ライブラリと拡張 FAQ — Python 3.14.8 ドキュメント 7186
ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » Python よくある質問 » ライブラリと拡張 FAQ テーマ 自動 ライト ダーク | ライブラリと拡張 FAQ ¶ ライブラリ一般の質問 ¶ 作業 X を行うためのモジュールやアプリケーショ ... の作業はないとして終了 (exit) する。 # (現実的には ワーカーは終了する (terminated) まで走り続ける) def worker (): print ( 'Running worker' ) time . sleep ( 0.1 ) while True : try : arg = q . get ( block = False ) except queue . Empty : print ( 'Worker' ... ), end = ' ' ) print ( 'queue empty' ) break else : print ( 'Worker' , threading . current_thread (), end = ' ' ) print ( 'running with argument' , arg ) time . sleep ( 0.5 ) # キュー作成 q = queue . Queue () # 5つのワーカープールをスタート for i in ran ... ( i ) # スレッドの作業時間を確保 print ( 'Main thread sleeping' ) time . sleep ( 5 ) 実行時には、以下のように出力されます: Running worker Running worker Running worker Running worker Running worker Main thread sleeping Worker <Thread(worker 1, started 1 ...
https://man.mtool.work/python/3.14/faq/library.html
PREV 1 2 3 4 5 6 7 8 9 10 NEXT