per page, with , order by , clip by
Results of 1 - 10 of about 116 for tuples (0.103 sec.)
itertools --- 効率的なループ用のイテレータ生成関数群 — Python 3.14.8 ドキュメン... 11851
ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » The Python standard library » 関数型プログラミング用モジュール » itertools --- 効率的なループ用のイテレータ生成関数群 テーマ 自動 ライト ダーク | itertools --- 効 ... ue, 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 a batch. The result is yielded as soon as the batch is fu ... f the output is given by math.comb() which computes n! / r! / (n - r)! when 0 ≤ r ≤ n or zero when r > n . The combination tuples are emitted in lexicographic order according to the order of the input iterable . If the input iterable is sorted, the out ... put tuples will be produced in sorted order. Elements are treated as unique based on their position, not on their value. If the input ...
https://man.mtool.work/python/3.14/library/itertools.html
itertools --- 効率的なループ用のイテレータ生成関数群 — Python 3.14.8 ドキュメン... 11851
ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » The Python standard library » 関数型プログラミング用モジュール » itertools --- 効率的なループ用のイテレータ生成関数群 テーマ 自動 ライト ダーク | itertools --- 効 ... ue, 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 a batch. The result is yielded as soon as the batch is fu ... f the output is given by math.comb() which computes n! / r! / (n - r)! when 0 ≤ r ≤ n or zero when r > n . The combination tuples are emitted in lexicographic order according to the order of the input iterable . If the input iterable is sorted, the out ... put tuples will be produced in sorted order. Elements are treated as unique based on their position, not on their value. If the input ...
https://man.mtool.work/python/3.14/library/itertools.html
変更履歴 — Python 3.14.8 ドキュメント 10999
ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » What's New in Python » 変更履歴 テーマ 自動 ライト ダーク | 変更履歴 ¶ Python next ¶ Release date: XXXX-XX-XX セキュリティ ¶ gh-157265 : In tarfile , when extrac ... Patch by Victor Stinner. gh-156204 : Fix a crash in PyErr_GivenExceptionMatches() when evaluating deeply nested exception tuples. The recursion is now bounded, and exceeding the limit is reported as an unraisable exception. ライブラリ ¶ gh-156321 : Fi ... std.h ), which used a 32-bit atomic load instead of 16-bit. Found by Mohammed Zuhaib. gh-146056 : Fix repr() for lists and tuples containing NULL s. gh-146092 : Handle properly memory allocation failures on str and float opcodes. Patch by Victor Stinne ... e buffer protocol is used for this. gh-142531 : Fix a free-threaded GC performance regression. If there are many untracked tuples, the GC will run too often, resulting in poor performance. The fix is to include untracked tuples in the "long lived" obje ...
https://man.mtool.work/python/3.14/whatsnew/changelog.html
ソートのテクニック — Python 3.14.8 ドキュメント 10711
ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » Python HOWTO » ソートのテクニック テーマ 自動 ライト ダーク | ソートのテクニック ¶ Author : Andrew Dalke and Raymond Hettinger Python のリストにはリストをインプレ ... す。 よくある利用パターンはいくつかの要素から成る対象をインデクスのどれかをキーとしてソートすることです。例えば: >>> student_tuples = [ ... ( 'john' , 'A' , 15 ), ... ( 'jane' , 'B' , 12 ), ... ( 'dave' , 'B' , 10 ), ... ] >>> sorted ( student_tuples , k ... 関数を利用すると、上の例はもっと簡単で高速になります: >>> from operator import itemgetter , attrgetter >>> sorted ( student_tuples , key = itemgetter ( 2 )) [('dave', 'B', 10), ('jane', 'B', 12), ('john', 'A', 15)] >>> sorted ( student_objects , key = a ... ールの関数は複数の段階でのソートを可能にします。例えば、 grade でソートしてさらに age でソートする場合: >>> sorted ( student_tuples , key = itemgetter ( 1 , 2 )) [('john', 'A', 15), ('dave', 'B', 10), ('jane', 'B', 12)] >>> sorted ( student_objects , key ...
https://man.mtool.work/python/3.14/howto/sorting.html
ソートのテクニック — Python 3.14.8 ドキュメント 9847
ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » Python HOWTO » ソートのテクニック テーマ 自動 ライト ダーク | ソートのテクニック ¶ Author : Andrew Dalke and Raymond Hettinger Python のリストにはリストをインプレ ... す。 よくある利用パターンはいくつかの要素から成る対象をインデクスのどれかをキーとしてソートすることです。例えば: >>> student_tuples = [ ... ( 'john' , 'A' , 15 ), ... ( 'jane' , 'B' , 12 ), ... ( 'dave' , 'B' , 10 ), ... ] >>> sorted ( student_tuples , k ... 関数を利用すると、上の例はもっと簡単で高速になります: >>> from operator import itemgetter , attrgetter >>> sorted ( student_tuples , key = itemgetter ( 2 )) [('dave', 'B', 10), ('jane', 'B', 12), ('john', 'A', 15)] >>> sorted ( student_objects , key = a ... ールの関数は複数の段階でのソートを可能にします。例えば、 grade でソートしてさらに age でソートする場合: >>> sorted ( student_tuples , key = itemgetter ( 1 , 2 )) [('john', 'A', 15), ('dave', 'B', 10), ('jane', 'B', 12)] >>> sorted ( student_objects , key ...
https://man.mtool.work/python/3.14/howto/sorting.html
dataclasses --- データクラス — Python 3.14.8 ドキュメント 8143
ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » The Python standard library » Python ランタイムサービス » dataclasses --- データクラス テーマ 自動 ライト ダーク | dataclasses --- データクラス ¶ ソースコード: L ... method now compares each field individually (for example, self.a == other.a and self.b == other.b ), rather than comparing tuples of fields as in previous versions. This change makes the comparison faster but it may alter results in cases where attribu ... by identity but not by value (such as float('nan') ). In Python 3.12 and earlier, the comparison was performed by creating tuples of the fields and comparing them (for example, (self.a, self.b) == (other.a, other.b) ). order : If true (the default is F ... dict_factory ). Each dataclass is converted to a dict of its fields, as name: value pairs. dataclasses, dicts, lists, and tuples are recursed into. Other objects are copied with copy.deepcopy() . Example of using asdict() on nested dataclasses: @datac ...
https://man.mtool.work/python/3.14/library/dataclasses.html
dataclasses --- データクラス — Python 3.14.8 ドキュメント 8143
ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » The Python standard library » Python ランタイムサービス » dataclasses --- データクラス テーマ 自動 ライト ダーク | dataclasses --- データクラス ¶ ソースコード: L ... method now compares each field individually (for example, self.a == other.a and self.b == other.b ), rather than comparing tuples of fields as in previous versions. This change makes the comparison faster but it may alter results in cases where attribu ... by identity but not by value (such as float('nan') ). In Python 3.12 and earlier, the comparison was performed by creating tuples of the fields and comparing them (for example, (self.a, self.b) == (other.a, other.b) ). order : If true (the default is F ... dict_factory ). Each dataclass is converted to a dict of its fields, as name: value pairs. dataclasses, dicts, lists, and tuples are recursed into. Other objects are copied with copy.deepcopy() . Example of using asdict() on nested dataclasses: @datac ...
https://man.mtool.work/python/3.14/library/dataclasses.html
What's New in Python 2.6 — Python 3.14.8 ドキュメント 7855
ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » What's New in Python » What's New in Python 2.6 テーマ 自動 ライト ダーク | What's New in Python 2.6 ¶ 著者 : A.M. Kuchling (amk at amk.ca) This article explains ... いる場合、 default 引数が与えられていれがこれを、そうでなければ StopIteration 例外を起こします。 (Backported in bpo-2719 .) Tuples now have index() and count() methods matching the list type's index() and count() methods: >>> t = ( 0 , 1 , 2 , 3 , 4 , 0 ... litude' ) >>> v2 variable(id=1, name='amplitude', type='int', size=4) Several places in the standard library that returned tuples have been modified to return namedtuple() instances. For example, the decimal.Decimal.as_tuple() method now returns a name ... returns a named tuple with sign , digits , and exponent fields. (Implemented by Facundo Batista and Mark Dickinson. Named tuple support added by Raymond Hettinger.) The difflib module's SequenceMatcher class now returns named tuples representing match ...
https://man.mtool.work/python/3.14/whatsnew/2.6.html
What's New in Python 2.6 — Python 3.14.8 ドキュメント 7855
ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » What's New in Python » What's New in Python 2.6 テーマ 自動 ライト ダーク | What's New in Python 2.6 ¶ 著者 : A.M. Kuchling (amk at amk.ca) This article explains ... いる場合、 default 引数が与えられていれがこれを、そうでなければ StopIteration 例外を起こします。 (Backported in bpo-2719 .) Tuples now have index() and count() methods matching the list type's index() and count() methods: >>> t = ( 0 , 1 , 2 , 3 , 4 , 0 ... litude' ) >>> v2 variable(id=1, name='amplitude', type='int', size=4) Several places in the standard library that returned tuples have been modified to return namedtuple() instances. For example, the decimal.Decimal.as_tuple() method now returns a name ... returns a named tuple with sign , digits , and exponent fields. (Implemented by Facundo Batista and Mark Dickinson. Named tuple support added by Raymond Hettinger.) The difflib module's SequenceMatcher class now returns named tuples representing match ...
https://man.mtool.work/python/3.14/whatsnew/2.6.html
タプルオブジェクト (tuple object) — Python 3.14.8 ドキュメント 7567
ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » Python/C API reference manual » 具象オブジェクト (concrete object) レイヤ » タプルオブジェクト (tuple object) テーマ 自動 ライト ダーク | タプルオブジェクト (tup ... t pos , PyObject * o ) ¶ Like PyTuple_SetItem() , but does no error checking, and should only be used to fill in brand new tuples. Bounds checking is performed as an assertion if Python is built in debug mode or with assertions . 注釈 This function " s ... that is being replaced; any reference in the tuple at position pos will be leaked. 警告 This macro should only be used on tuples that are newly created. Using this macro on a tuple that is already in use (or in other words, has a refcount > 1) could l ... 13 で変更: Now implemented as an alias to PyStructSequence_SetItem() . 関連キーワード PyObject PyStructSequence PyTuple Py tuple ssize pos Stable タプル sequence type オブジェクト reference struct Python 戻り値 set exception Return GetItem 目次 タプルオ ...
https://man.mtool.work/python/3.14/c-api/tuple.html
PREV 1 2 3 4 5 6 7 8 9 10 NEXT