Results of 1 - 10 of about 34 for workers (0.036 sec.)
- concurrent.futures --- 並列タスク実行 — Python 3.14.8 ドキュメント 13628
- ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » The Python standard library » 並行実行 » concurrent.futures --- 並列タスク実行 テーマ 自動 ライト ダーク | concurrent.futures --- 並列タスク実行 ¶ Added in versi
...ようにスケジュールし、呼び出し可能オブジェクトの実行を表現する Future オブジェクトを返します。 with ThreadPoolExecutor ( max_workers = 1 ) as executor : future = executor . submit ( pow , 323 , 1235 ) print ( future . result ()) map ( fn , * iterables , t...ecutor (waiting as if Executor.shutdown() were called with wait set to True ): import shutil with ThreadPoolExecutor ( max_workers = 4 ) as e : e . submit ( shutil . copy , 'src1.txt' , 'dest1.txt' ) e . submit ( shutil . copy , 'src2.txt' , 'dest2.txt'...) print ( a . result ()) # a will never complete because it is waiting on b. return 6 executor = ThreadPoolExecutor ( max_workers = 2 ) a = executor . submit ( wait_on_b ) b = executor . submit ( wait_on_a ) 以下でも同様です: def wait_on_future (): f =... - https://man.mtool.work/python/3.14/library/concurrent.futures.html
- concurrent.futures --- 並列タスク実行 — Python 3.14.8 ドキュメント 13628
- ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » The Python standard library » 並行実行 » concurrent.futures --- 並列タスク実行 テーマ 自動 ライト ダーク | concurrent.futures --- 並列タスク実行 ¶ Added in versi
...ようにスケジュールし、呼び出し可能オブジェクトの実行を表現する Future オブジェクトを返します。 with ThreadPoolExecutor ( max_workers = 1 ) as executor : future = executor . submit ( pow , 323 , 1235 ) print ( future . result ()) map ( fn , * iterables , t...ecutor (waiting as if Executor.shutdown() were called with wait set to True ): import shutil with ThreadPoolExecutor ( max_workers = 4 ) as e : e . submit ( shutil . copy , 'src1.txt' , 'dest1.txt' ) e . submit ( shutil . copy , 'src2.txt' , 'dest2.txt'...) print ( a . result ()) # a will never complete because it is waiting on b. return 6 executor = ThreadPoolExecutor ( max_workers = 2 ) a = executor . submit ( wait_on_b ) b = executor . submit ( wait_on_a ) 以下でも同様です: def wait_on_future (): f =... - https://man.mtool.work/python/3.14/library/concurrent.futures.html
- compileall --- Python ライブラリをバイトコンパイルする — Python 3.14.8 ドキュメ... 10193
- ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » The Python standard library » Python言語サービス » compileall --- Python ライブラリをバイトコンパイルする テーマ 自動 ライト ダーク | compileall --- Python ライブ
...ョンは無視されます。 python -m compileall <directory> -r 0 は python -m compileall <directory> -l と等価です。 -j N ¶ Use N workers to compile the files within the given directory. If 0 is used, then the result of os.process_cpu_count() will be used. --i...xlevels = sys.getrecursionlimit() , ddir = None , force = False , rx = None , quiet = 0 , legacy = False , optimize = -1 , workers = 1 , invalidation_mode = None , * , stripdir = None , prependdir = None , limit_sl_dest = None , hardlink_dupes = False )...cepts also a sequence of optimization levels which lead to multiple compilations of one .py file in one call. The argument workers specifies how many workers are used to compile files in parallel. The default is to not use multiple workers. If the platf... - https://man.mtool.work/python/3.14/library/compileall.html
- compileall --- Python ライブラリをバイトコンパイルする — Python 3.14.8 ドキュメ... 10193
- ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » The Python standard library » Python言語サービス » compileall --- Python ライブラリをバイトコンパイルする テーマ 自動 ライト ダーク | compileall --- Python ライブ
...ョンは無視されます。 python -m compileall <directory> -r 0 は python -m compileall <directory> -l と等価です。 -j N ¶ Use N workers to compile the files within the given directory. If 0 is used, then the result of os.process_cpu_count() will be used. --i...xlevels = sys.getrecursionlimit() , ddir = None , force = False , rx = None , quiet = 0 , legacy = False , optimize = -1 , workers = 1 , invalidation_mode = None , * , stripdir = None , prependdir = None , limit_sl_dest = None , hardlink_dupes = False )...cepts also a sequence of optimization levels which lead to multiple compilations of one .py file in one call. The argument workers specifies how many workers are used to compile files in parallel. The default is to not use multiple workers. If the platf... - https://man.mtool.work/python/3.14/library/compileall.html
- Logging クックブック — Python 3.14.8 ドキュメント 8803
- ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » Python HOWTO » Logging クックブック テーマ 自動 ライト ダーク | Logging クックブック ¶ Author : Vinay Sajip <vinay_sajip at red-dove dot com> このページは、過去に
...om random import choice , random import time # # Because you'll want to define the logging configurations for listener and workers, the # listener and worker process functions take a configurer parameter which is a callable # for configuring logging for...ef worker_process ( queue , configurer ): configurer ( queue ) name = multiprocessing . current_process () . name print ( 'Worker started: %s ' % name ) for i in range ( 10 ): time . sleep ( random ()) logger = logging . getLogger ( choice ( LOGGERS ))...ed: %s ' % name ) # Here's where the demo gets orchestrated. Create the queue, create and start # the listener, create ten workers and start them, wait for them to finish, # then send a None to the queue to tell the listener to finish. def main (): queu... - https://man.mtool.work/python/3.14/howto/logging-cookbook.html
- Logging クックブック — Python 3.14.8 ドキュメント 8643
- ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » Python HOWTO » Logging クックブック テーマ 自動 ライト ダーク | Logging クックブック ¶ Author : Vinay Sajip <vinay_sajip at red-dove dot com> このページは、過去に
...om random import choice , random import time # # Because you'll want to define the logging configurations for listener and workers, the # listener and worker process functions take a configurer parameter which is a callable # for configuring logging for...ef worker_process ( queue , configurer ): configurer ( queue ) name = multiprocessing . current_process () . name print ( 'Worker started: %s ' % name ) for i in range ( 10 ): time . sleep ( random ()) logger = logging . getLogger ( choice ( LOGGERS ))...ed: %s ' % name ) # Here's where the demo gets orchestrated. Create the queue, create and start # the listener, create ten workers and start them, wait for them to finish, # then send a None to the queue to tell the listener to finish. def main (): queu... - https://man.mtool.work/python/3.14/howto/logging-cookbook.html
- compression.zstd --- Compression compatible with the Zstandard format — Python ... 8132
- ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » The Python standard library » データ圧縮とアーカイブ » compression.zstd --- Compression compatible with the Zstandard format テーマ 自動 ライト ダーク | compress
...ctionary's ID is written into the frame header. True or 1 enable storing the dictionary ID while False or 0 disable it. nb_workers ¶ Select how many threads will be spawned to compress in parallel. When nb_workers > 0, enables multi-threaded compression..., a value of 1 means "one-thread multi-threaded mode". More workers improve speed, but also increase memory usage and slightly reduce compression ratio. A value of zero disables multi-thread...ing. job_size ¶ Size of a compression job, in bytes. This value is enforced only when nb_workers >= 1. Each compression job is completed in parallel, so this value can indirectly impact the number of active threads. A v... - https://man.mtool.work/python/3.14/library/compression.zstd.html
- compression.zstd --- Compression compatible with the Zstandard format — Python ... 8132
- ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » The Python standard library » データ圧縮とアーカイブ » compression.zstd --- Compression compatible with the Zstandard format テーマ 自動 ライト ダーク | compress
...ctionary's ID is written into the frame header. True or 1 enable storing the dictionary ID while False or 0 disable it. nb_workers ¶ Select how many threads will be spawned to compress in parallel. When nb_workers > 0, enables multi-threaded compression..., a value of 1 means "one-thread multi-threaded mode". More workers improve speed, but also increase memory usage and slightly reduce compression ratio. A value of zero disables multi-thread...ing. job_size ¶ Size of a compression job, in bytes. This value is enforced only when nb_workers >= 1. Each compression job is completed in parallel, so this value can indirectly impact the number of active threads. A v... - https://man.mtool.work/python/3.14/library/compression.zstd.html
- What's New In Python 3.9 — Python 3.14.8 ドキュメント 7477
- ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » What's New in Python » What's New In Python 3.9 テーマ 自動 ライト ダーク | What's New In Python 3.9 ¶ 編集者 : Łukasz Langa This article explains the new featur
...tibility with subinterpreters and predictability in their shutdown processes. (Contributed by Kyle Stanley in bpo-39812 .) Workers in ProcessPoolExecutor are now spawned on demand, only when there are no available idle workers to reuse. This optimizes s...tartup overhead and reduces the amount of lost CPU time to idle workers. (Contributed by Kyle Stanley in bpo-39207 .) curses ¶ curses.get_escdelay() , curses.set_escdelay() , curses.get_tabsize(... - https://man.mtool.work/python/3.14/whatsnew/3.9.html
- 変更履歴 — Python 3.14.8 ドキュメント 7477
- ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » What's New in Python » 変更履歴 テーマ 自動 ライト ダーク | 変更履歴 ¶ Python next ¶ Release date: XXXX-XX-XX セキュリティ ¶ gh-157265 : In tarfile , when extrac
...abormally, resulted in an exception and a potential hang when the still-running executor thread attempted to replace dead workers within the pool. gh-127081 : Fix libc thread safety issues with os by replacing getlogin with getlogin_r re-entrant versio...aclass() on classes with unresolvable forward references. gh-128041 : Add concurrent.futures.ProcessPoolExecutor.terminate_workers() and concurrent.futures.ProcessPoolExecutor.kill_workers() as ways to terminate or kill all living worker processes in th...h during the importing of multiprocessing.set_forkserver_preload() modules in the same manner as sys.path is configured in workers before executing work items. This bug caused some forkserver module preloading to silently fail to preload. This manifeste... - https://man.mtool.work/python/3.14/whatsnew/changelog.html