Results of 1 - 10 of about 362 for tuple (0.042 sec.)
- typing --- 型ヒントのサポート — Python 3.14.8 ドキュメント 9693
- ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » The Python standard library » 開発ツール » typing --- 型ヒントのサポート テーマ 自動 ライト ダーク | typing --- 型ヒントのサポート ¶ Added in version 3.5. ソース
...化するのに有用です。例えば: from collections.abc import Sequence type ConnectionOptions = dict [ str , str ] type Address = tuple [ str , int ] type Server = tuple [ Address , ConnectionOptions ] def broadcast_message ( message : str , servers : Sequen...アノテーションと # 以下のアノテーションを同等のものとして扱う。 def broadcast_message ( message : str , servers : Sequence [ tuple [ tuple [ str , int ], dict [ str , str ]]] ) -> None : ... type 文はPython3.12で新しく導入されました。後方互換性のために、...て同じ型ではない要素を持つことは、慣用的なPythonコードでは一般的です。このため、タプルはPythonの型システムの中でも特殊です。 tuple は任意の数の引数を受け入れます # OK: ``x`` に代入されるのは長さ1のタプルで、要素は int x : tuple [ int ] = ( 5 ,) # OK: ``... - https://man.mtool.work/python/3.14/library/typing.html
- typing --- 型ヒントのサポート — Python 3.14.8 ドキュメント 9693
- ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » The Python standard library » 開発ツール » typing --- 型ヒントのサポート テーマ 自動 ライト ダーク | typing --- 型ヒントのサポート ¶ Added in version 3.5. ソース
...化するのに有用です。例えば: from collections.abc import Sequence type ConnectionOptions = dict [ str , str ] type Address = tuple [ str , int ] type Server = tuple [ Address , ConnectionOptions ] def broadcast_message ( message : str , servers : Sequen...アノテーションと # 以下のアノテーションを同等のものとして扱う。 def broadcast_message ( message : str , servers : Sequence [ tuple [ tuple [ str , int ], dict [ str , str ]]] ) -> None : ... type 文はPython3.12で新しく導入されました。後方互換性のために、...て同じ型ではない要素を持つことは、慣用的なPythonコードでは一般的です。このため、タプルはPythonの型システムの中でも特殊です。 tuple は任意の数の引数を受け入れます # OK: ``x`` に代入されるのは長さ1のタプルで、要素は int x : tuple [ int ] = ( 5 ,) # OK: ``... - https://man.mtool.work/python/3.14/library/typing.html
- タプルオブジェクト (tuple object) — Python 3.14.8 ドキュメント 9453
- ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » Python/C API reference manual » 具象オブジェクト (concrete object) レイヤ » タプルオブジェクト (tuple object) テーマ 自動 ライト ダーク | タプルオブジェクト (tuple
...le object) ¶ type PyTupleObject ¶ この PyObject のサブタイプは Python のタプルオブジェクトを表現します。 PyTypeObject PyTuple_Type ¶ 次に属します: S...table ABI . この PyTypeObject のインスタンスは Python のタプル型を表現します; Python レイヤにおける tuple と同じオブジェクトです。 int PyTuple_Check ( PyObject * p ) ¶ p がタプルオブジェクトかタプル型のサブタイプのインスタンスで...ある場合に真を返します。この関数は常に成功します。 int PyTuple_CheckExact ( PyObject * p ) ¶ p がタプルオブジェクトだがタプル型のサブタイプのインスタンスでない場合に真を返します。この関... - https://man.mtool.work/python/3.14/c-api/tuple.html
- タプルオブジェクト (tuple object) — Python 3.14.8 ドキュメント 9453
- ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » Python/C API reference manual » 具象オブジェクト (concrete object) レイヤ » タプルオブジェクト (tuple object) テーマ 自動 ライト ダーク | タプルオブジェクト (tuple
...le object) ¶ type PyTupleObject ¶ この PyObject のサブタイプは Python のタプルオブジェクトを表現します。 PyTypeObject PyTuple_Type ¶ 次に属します: S...table ABI . この PyTypeObject のインスタンスは Python のタプル型を表現します; Python レイヤにおける tuple と同じオブジェクトです。 int PyTuple_Check ( PyObject * p ) ¶ p がタプルオブジェクトかタプル型のサブタイプのインスタンスで...ある場合に真を返します。この関数は常に成功します。 int PyTuple_CheckExact ( PyObject * p ) ¶ p がタプルオブジェクトだがタプル型のサブタイプのインスタンスでない場合に真を返します。この関... - https://man.mtool.work/python/3.14/c-api/tuple.html
- tkinter --- Tcl/Tk の Python インターフェース — Python 3.14.8 ドキュメント 8743
- ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » The Python standard library » Graphical user interfaces with Tk » tkinter --- Tcl/Tk の Python インターフェース テーマ 自動 ライト ダーク | tkinter --- Tcl/Tk の
...hese calls is a dictionary whose key is the name of the option as a string (for example, 'relief' ) and whose values are 5-tuples. Some options, like bg , are synonyms for common options with long names ( bg is shorthand for "background"). インデックス..." と表現します。 font Tk uses a font description such as {courier 10 bold} ; in tkinter this is most naturally passed as a tuple of (family, size, *styles) (or as the equivalent string "Courier 10 bold" ). Font sizes with positive numbers are measured...y the configuration options of the widget. With no arguments, return a dictionary mapping every available option name to a tuple describing it (its name, X resource name, X resource class, default value and current value). If a single option name is g... - https://man.mtool.work/python/3.14/library/tkinter.html
- string.templatelib --- テンプレート文字列リテラルのサポート — Python 3.14.8 ド... 8024
- ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » The Python standard library » テキスト処理サービス » string.templatelib --- テンプレート文字列リテラルのサポート テーマ 自動 ライト ダーク | string.templatelib -
...', '.') >>> template . interpolations (Interpolation('Camembert', ...),) >>> template . values ('Camembert',) The strings tuple has one more element than interpolations and values ; the interpolations “belong” between the strings. This may be easier...to understand when tuples are aligned template . strings : ( 'Ah! We do have ' , '.' ) template . values : ( 'Camembert' , ) 属性 strings : tuple [...str , ... ] ¶ A tuple of the static strings in the template. >>> cheese = 'Camembert' >>> template = t 'Ah! We do have { cheese } .' >>> templat... - https://man.mtool.work/python/3.14/library/string.templatelib.html
- string.templatelib --- テンプレート文字列リテラルのサポート — Python 3.14.8 ド... 8024
- ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » The Python standard library » テキスト処理サービス » string.templatelib --- テンプレート文字列リテラルのサポート テーマ 自動 ライト ダーク | string.templatelib -
...', '.') >>> template . interpolations (Interpolation('Camembert', ...),) >>> template . values ('Camembert',) The strings tuple has one more element than interpolations and values ; the interpolations “belong” between the strings. This may be easier...to understand when tuples are aligned template . strings : ( 'Ah! We do have ' , '.' ) template . values : ( 'Camembert' , ) 属性 strings : tuple [...str , ... ] ¶ A tuple of the static strings in the template. >>> cheese = 'Camembert' >>> template = t 'Ah! We do have { cheese } .' >>> templat... - https://man.mtool.work/python/3.14/library/string.templatelib.html
- 変更履歴 — Python 3.14.8 ドキュメント 7491
- ナビゲーション 索引 モジュール | 次へ | 前へ | 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 : F...-148817 : Fold large constant list and set literals used as the iterable of a for loop or in / not in test into a constant tuple or frozenset , restoring an optimization previously done by the AST optimizer that was lost when constant folding moved to...the CFG. gh-146096 : Fixed segmentation fault when called repr for BaseExceptionGroup with empty or 1-size tuple args. gh-85260 : compile() now raises ValueError instead of crashing on a debug build if an identifier field of an AST nod... - https://man.mtool.work/python/3.14/whatsnew/changelog.html
- tkinter --- Tcl/Tk の Python インターフェース — Python 3.14.8 ドキュメント 7074
- ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » The Python standard library » Graphical user interfaces with Tk » tkinter --- Tcl/Tk の Python インターフェース テーマ 自動 ライト ダーク | tkinter --- Tcl/Tk の
...hese calls is a dictionary whose key is the name of the option as a string (for example, 'relief' ) and whose values are 5-tuples. Some options, like bg , are synonyms for common options with long names ( bg is shorthand for "background"). インデックス..." と表現します。 font Tk uses a font description such as {courier 10 bold} ; in tkinter this is most naturally passed as a tuple of (family, size, *styles) (or as the equivalent string "Courier 10 bold" ). Font sizes with positive numbers are measured...y the configuration options of the widget. With no arguments, return a dictionary mapping every available option name to a tuple describing it (its name, X resource name, X resource class, default value and current value). If a single option name is g... - https://man.mtool.work/python/3.14/library/tkinter.html
- itertools --- 効率的なループ用のイテレータ生成関数群 — Python 3.14.8 ドキュメン... 6657
- ナビゲーション 索引 モジュール | 次へ | 前へ | 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 f...DEFG', 3) → ABC DEF G if n < 1 : raise ValueError ( 'n must be at least one' ) iterator = iter ( iterable ) while batch := tuple ( islice ( iterator , n )): if strict and len ( batch ) != n : raise ValueError ( 'batched(): incomplete batch' ) yield ba...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 ou... - https://man.mtool.work/python/3.14/library/itertools.html