Results of 1 - 10 of about 53 for loops (0.033 sec.)
- timeit --- 小さなコードスニペットの実行時間計測 — Python 3.14.8 ドキュメント 14824
- ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » The Python standard library » Debugging and Profiling » timeit --- 小さなコードスニペットの実行時間計測 テーマ 自動 ライト ダーク | timeit --- 小さなコードスニペ
...を使って 3 つの異なる式の時間を測定する方法を示しています。 $ python -m timeit "'-'.join(str(n) for n in range(100))" 10000 loops, best of 5: 30.2 usec per loop $ python -m timeit "'-'.join([str(n) for n in range(100)])" 10000 loops, best of 5: 27.5 us...ec per loop $ python -m timeit "'-'.join(map(str, range(100)))" 10000 loops, best of 5: 23.2 usec per loop 同じ事を Python Interface を使って実現することもできます: >>> import timeit >>> timeit . ti...onvenience function that calls timeit() repeatedly so that the total time >= 0.2 second, returning the eventual (number of loops, time taken for that number of loops). It calls timeit() with increasing numbers from the sequence 1, 2, 5, 10, 20, 50, ..... - https://man.mtool.work/python/3.14/library/timeit.html
- timeit --- 小さなコードスニペットの実行時間計測 — Python 3.14.8 ドキュメント 14303
- ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » The Python standard library » Debugging and Profiling » timeit --- 小さなコードスニペットの実行時間計測 テーマ 自動 ライト ダーク | timeit --- 小さなコードスニペ
...を使って 3 つの異なる式の時間を測定する方法を示しています。 $ python -m timeit "'-'.join(str(n) for n in range(100))" 10000 loops, best of 5: 30.2 usec per loop $ python -m timeit "'-'.join([str(n) for n in range(100)])" 10000 loops, best of 5: 27.5 us...ec per loop $ python -m timeit "'-'.join(map(str, range(100)))" 10000 loops, best of 5: 23.2 usec per loop 同じ事を Python Interface を使って実現することもできます: >>> import timeit >>> timeit . ti...onvenience function that calls timeit() repeatedly so that the total time >= 0.2 second, returning the eventual (number of loops, time taken for that number of loops). It calls timeit() with increasing numbers from the sequence 1, 2, 5, 10, 20, 50, ..... - https://man.mtool.work/python/3.14/library/timeit.html
- itertools --- 効率的なループ用のイテレータ生成関数群 — Python 3.14.8 ドキュメン... 8707
- ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » The Python standard library » 関数型プログラミング用モジュール » itertools --- 効率的なループ用のイテレータ生成関数群 テーマ 自動 ライト ダーク | itertools --- 効
...l construct and return iterators. Some provide streams of infinite length, so they should only be accessed by functions or loops that truncate the stream. itertools. accumulate ( iterable [ , function , * , initial=None ] ) ¶ Make an iterator that ret...チは n 個より少なくなる可能性があります。 If strict is true, will raise a ValueError if the final batch is shorter than n . Loops over the input iterable and accumulates data into tuples up to size n . The input is consumed lazily, just enough to fill...ols together in a functional style . High speed is retained by preferring "vectorized" building blocks over the use of for-loops and generators which incur interpreter overhead. from itertools import ( accumulate , batched , chain , combinations , com... - https://man.mtool.work/python/3.14/library/itertools.html
- itertools --- 効率的なループ用のイテレータ生成関数群 — Python 3.14.8 ドキュメン... 8707
- ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » The Python standard library » 関数型プログラミング用モジュール » itertools --- 効率的なループ用のイテレータ生成関数群 テーマ 自動 ライト ダーク | itertools --- 効
...l construct and return iterators. Some provide streams of infinite length, so they should only be accessed by functions or loops that truncate the stream. itertools. accumulate ( iterable [ , function , * , initial=None ] ) ¶ Make an iterator that ret...チは n 個より少なくなる可能性があります。 If strict is true, will raise a ValueError if the final batch is shorter than n . Loops over the input iterable and accumulates data into tuples up to size n . The input is consumed lazily, just enough to fill...ols together in a functional style . High speed is retained by preferring "vectorized" building blocks over the use of for-loops and generators which incur interpreter overhead. from itertools import ( accumulate , batched , chain , combinations , com... - https://man.mtool.work/python/3.14/library/itertools.html
- 変更履歴 — Python 3.14.8 ドキュメント 8186
- ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » What's New in Python » 変更履歴 テーマ 自動 ライト ダーク | 変更履歴 ¶ Python next ¶ Release date: XXXX-XX-XX セキュリティ ¶ gh-157265 : In tarfile , when extrac
...s__ attributes of classes defined under from __future__ import annotations had no effect. gh-132762 : fromkeys() no longer loops forever when adding a small set of keys to a large base dict. Patch by Angela Liss. gh-133541 : Inconsistent indentation i...enerated by the bytecode compiler. gh-128534 : Ensure that both left and right branches have the same source for async for loops. Add these branches to the co_branches() iterator. gh-130794 : Fix memory leak in the free threaded build when resizing a...es is in the body, not the pattern. gh-128534 : Add branch monitoring ( BRANCH_LEFT and BRANCH_RIGHT events) for async for loops. gh-130163 : Fix possible crashes related to concurrent change and use of the sys module attributes. gh-122029 : INSTRUMEN... - https://man.mtool.work/python/3.14/whatsnew/changelog.html
- Extending — Python 3.14.8 ドキュメント 7843
- ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » The Python standard library » ネットワーク通信とプロセス間通信 » asyncio --- 非同期 I/O » Extending テーマ 自動 ライト ダーク | Extending ¶ The main direction fo
...nding loop.create_future() and loop.create_task() , or asyncio.create_task() factories instead. However, third-party event loops may reuse built-in future and task implementations for the sake of getting a complex and highly optimized code for free. F... - https://man.mtool.work/python/3.14/library/asyncio-extending.html
- Extending — Python 3.14.8 ドキュメント 7843
- ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » The Python standard library » ネットワーク通信とプロセス間通信 » asyncio --- 非同期 I/O » Extending テーマ 自動 ライト ダーク | Extending ¶ The main direction fo
...nding loop.create_future() and loop.create_task() , or asyncio.create_task() factories instead. However, third-party event loops may reuse built-in future and task implementations for the sake of getting a complex and highly optimized code for free. F... - https://man.mtool.work/python/3.14/library/asyncio-extending.html
- Python で Curses プログラミング — Python 3.14.8 ドキュメント 7665
- ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » Python HOWTO » Python で Curses プログラミング テーマ 自動 ライト ダーク | Python で Curses プログラミング ¶ Author : A.M. Kuchling, Eric S. Raymond Release : 2.
...dinates of the on-screen area where a subsection of the pad will be displayed. pad = curses . newpad ( 100 , 100 ) # These loops fill the pad with letters; addch() is # explained in the next section for y in range ( 0 , 99 ): for x in range ( 0 , 99 )...ions that take either integer or 1-character string arguments; these may be useful in writing more readable tests for such loops. It also supplies conversion functions that take either integer or 1-character-string arguments and return the same type.... - https://man.mtool.work/python/3.14/howto/curses.html
- ポリシー — Python 3.14.8 ドキュメント 7665
- ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » The Python standard library » ネットワーク通信とプロセス間通信 » asyncio --- 非同期 I/O » ポリシー テーマ 自動 ライト ダーク | ポリシー ¶ 警告 Policies are depre
...entation. An event loop policy is a global object used to get and set the current event loop , as well as create new event loops. The default policy can be replaced with built-in alternatives to use different event loop implementations, or substituted... - https://man.mtool.work/python/3.14/library/asyncio-policy.html
- asyncio and free-threaded Python — Python 3.14.8 ドキュメント 7665
- ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » The Python standard library » ネットワーク通信とプロセス間通信 » asyncio --- 非同期 I/O » asyncio and free-threaded Python テーマ 自動 ライト ダーク | asyncio an
...U cores in a free-threaded Python environment. Each thread can run its own event loop, and tasks can be scheduled on those loops independently. Here's an example of how to use asyncio with threads: import asyncio import threading async def worker ( na... - https://man.mtool.work/python/3.14/library/asyncio-threading.html