Results of 1 - 10 of about 11 for batched (0.038 sec.)
- itertools --- 効率的なループ用のイテレータ生成関数群 — Python 3.14.8 ドキュメン... 12625
- ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » The Python standard library » 関数型プログラミング用モジュール » itertools --- 効率的なループ用のイテレータ生成関数群 テーマ 自動 ライト ダーク | itertools --- 効
...erators: イテレータ 引数 結果 使用例 accumulate() p [,func] p0, p0+p1, p0+p1+p2, ... accumulate([1,2,3,4,5]) → 1 3 6 10 15 batched() p, n (p0, p1, ..., p_n-1), ... batched('ABCDEFG', n=3) → ABC DEF G chain() p, q, ... p0, p1, ... plast, q0, q1, ... chai...Added the optional function parameter. バージョン 3.8 で変更: オプションの initial パラメータが追加されました。 itertools. batched ( iterable , n , * , strict = False ) ¶ iterable から得られるデータを n 個ごとに一つのタプルにまとめます。 一番最後のバッチ...is exhausted : >>> flattened_data = [ 'roses' , 'red' , 'violets' , 'blue' , 'sugar' , 'sweet' ] >>> unflattened = list ( batched ( flattened_data , 2 )) >>> unflattened [('roses', 'red'), ('violets', 'blue'), ('sugar', 'sweet')] およそ次と等価です: de... - https://man.mtool.work/python/3.14/library/itertools.html
- itertools --- 効率的なループ用のイテレータ生成関数群 — Python 3.14.8 ドキュメン... 12625
- ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » The Python standard library » 関数型プログラミング用モジュール » itertools --- 効率的なループ用のイテレータ生成関数群 テーマ 自動 ライト ダーク | itertools --- 効
...erators: イテレータ 引数 結果 使用例 accumulate() p [,func] p0, p0+p1, p0+p1+p2, ... accumulate([1,2,3,4,5]) → 1 3 6 10 15 batched() p, n (p0, p1, ..., p_n-1), ... batched('ABCDEFG', n=3) → ABC DEF G chain() p, q, ... p0, p1, ... plast, q0, q1, ... chai...Added the optional function parameter. バージョン 3.8 で変更: オプションの initial パラメータが追加されました。 itertools. batched ( iterable , n , * , strict = False ) ¶ iterable から得られるデータを n 個ごとに一つのタプルにまとめます。 一番最後のバッチ...is exhausted : >>> flattened_data = [ 'roses' , 'red' , 'violets' , 'blue' , 'sugar' , 'sweet' ] >>> unflattened = list ( batched ( flattened_data , 2 )) >>> unflattened [('roses', 'red'), ('violets', 'blue'), ('sugar', 'sweet')] およそ次と等価です: de... - https://man.mtool.work/python/3.14/library/itertools.html
- 索引 — Python 3.14.8 ドキュメント 8481
- ナビゲーション 索引 モジュール | Python » 3.14.8 Documentation » 索引 テーマ 自動 ライト ダーク | Index – B b" バイト列リテラル b' バイト列リテラル b16decode() (base64 モジュール) b16encode() (base64 モジュール) b2a_base64() (binascii モジュ
...のクラス) basicConfig() (logging モジュール) BasicContext (decimal モジュール) BasicInterpolation (configparser のクラス) batched() (itertools モジュール) baudrate() (curses モジュール) bbox() (tkinter.Canvas のメソッド) (tkinter.Grid のメソッド) (tkin... - https://man.mtool.work/python/3.14/genindex-B.html
- 索引 — Python 3.14.8 ドキュメント 8481
- ナビゲーション 索引 モジュール | Python » 3.14.8 Documentation » 索引 テーマ 自動 ライト ダーク | Index – B b" バイト列リテラル b' バイト列リテラル b16decode() (base64 モジュール) b16encode() (base64 モジュール) b2a_base64() (binascii モジュ
...のクラス) basicConfig() (logging モジュール) BasicContext (decimal モジュール) BasicInterpolation (configparser のクラス) batched() (itertools モジュール) baudrate() (curses モジュール) bbox() (tkinter.Canvas のメソッド) (tkinter.Grid のメソッド) (tkin... - https://man.mtool.work/python/3.14/genindex-B.html
- What's New In Python 3.12 — Python 3.14.8 ドキュメント 7948
- ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » What's New in Python » What's New In Python 3.12 テーマ 自動 ライト ダーク | What's New In Python 3.12 ¶ 編集者 : Adam Turner この記事では Python 3.11 と比較した
...e at least 2x faster than they were in Python 3.11. (Contributed by Alex Waygood in gh-103193 .) itertools ¶ Add itertools.batched() for collecting into even-sized tuples where the last batch may be shorter than the rest. (Contributed by Raymond Hetting... - https://man.mtool.work/python/3.14/whatsnew/3.12.html
- What's New In Python 3.13 — Python 3.14.8 ドキュメント 7948
- ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » What's New in Python » What's New In Python 3.13 テーマ 自動 ライト ダーク | What's New In Python 3.13 ¶ エディタ : Adam Turner と Thomas Wouters この記事では Py
...r in IPv4Address , IPv6Address , IPv4Network , and IPv6Network . (Contributed by Jakub Stasiak in gh-113171 .) itertools ¶ batched() has a new strict parameter, which raises a ValueError if the final batch is shorter than the specified batch size. (Cont... - https://man.mtool.work/python/3.14/whatsnew/3.13.html
- 変更履歴 — Python 3.14.8 ドキュメント 7948
- ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » What's New in Python » 変更履歴 テーマ 自動 ライト ダーク | 変更履歴 ¶ Python next ¶ Release date: XXXX-XX-XX セキュリティ ¶ gh-157265 : In tarfile , when extrac
...Semyon Moroz. gh-130250 : Fix regression in traceback.print_last() . gh-123471 : Make concurrent iterations over itertools.batched safe under free-threading. gh-57537 : Support breakpoints for zipimport modules on pdb gh-130230 : Fix crash in pow() with...es the newly spawned process use the current process environment. Patch by Jakub Kulik. gh-113202 : Add a strict option to batched() in the itertools module. gh-61648 : Detect line numbers of properties in doctests. gh-113175 : Sync with importlib_metad...ryview types: only the exact bytes type is accepted for bytes strings. Patch by Victor Stinner. gh-98363 : Added itertools.batched() to batch data into lists of a given length with the last list possibly being shorter than the others. gh-98331 : Update... - https://man.mtool.work/python/3.14/whatsnew/changelog.html
- 索引 — Python 3.14.8 ドキュメント 7948
- ナビゲーション 索引 モジュール | Python » 3.14.8 Documentation » 索引 テーマ 自動 ライト ダーク | 索引 記号 | _ | A | B | C | D | E | F | G | H | I | J | K | L | M | N | O | P | Q | R | S | T | U | V | W | X | Y | Z | イ | エ | オ | カ | キ
...のクラス) basicConfig() (logging モジュール) BasicContext (decimal モジュール) BasicInterpolation (configparser のクラス) batched() (itertools モジュール) baudrate() (curses モジュール) bbox() (tkinter.Canvas のメソッド) (tkinter.Grid のメソッド) (tkin... - https://man.mtool.work/python/3.14/genindex-all.html
- What's New In Python 3.12 — Python 3.14.8 ドキュメント 7948
- ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » What's New in Python » What's New In Python 3.12 テーマ 自動 ライト ダーク | What's New In Python 3.12 ¶ 編集者 : Adam Turner この記事では Python 3.11 と比較した
...e at least 2x faster than they were in Python 3.11. (Contributed by Alex Waygood in gh-103193 .) itertools ¶ Add itertools.batched() for collecting into even-sized tuples where the last batch may be shorter than the rest. (Contributed by Raymond Hetting... - https://man.mtool.work/python/3.14/whatsnew/3.12.html
- What's New In Python 3.13 — Python 3.14.8 ドキュメント 7948
- ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » What's New in Python » What's New In Python 3.13 テーマ 自動 ライト ダーク | What's New In Python 3.13 ¶ エディタ : Adam Turner と Thomas Wouters この記事では Py
...r in IPv4Address , IPv6Address , IPv4Network , and IPv6Network . (Contributed by Jakub Stasiak in gh-113171 .) itertools ¶ batched() has a new strict parameter, which raises a ValueError if the final batch is shorter than the specified batch size. (Cont... - https://man.mtool.work/python/3.14/whatsnew/3.13.html