Results of 1 - 10 of about 88 for slots (0.010 sec.)
- デスクリプタ ガイド — Python 3.14.8 ドキュメント 10496
- ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » Python HOWTO » デスクリプタ ガイド テーマ 自動 ライト ダーク | デスクリプタ ガイド ¶ Author : Raymond Hettinger Contact : <python at rcn dot com> デスクリプタ を
...turn into bound methods or about the implementation of common tools like @classmethod , @staticmethod , @property , and __slots__ . 入門 ¶ この入門では、なるべく基礎的なところから開始し、新しい要素を一つずつ紹介していきます。 シンプルな例: 定数を返す...中には、あまりに一般的なので組み込みに追加されたものもあります。プロパティ、束縛のメソッド、静的メソッド、クラスメソッド、 __slots__ は、全てデスクリプタプロトコルに基づいています。 プロパティ ¶ property() を呼び出すことで、属性へアクセスすると関数の呼び...ように見えるよう、必要な属性を追加します: __name__ 、 __qualname__ 、 __doc__ 、 __annotations__ 。 メンバーオブジェクトと __slots__ ¶ クラスが __slots__ を定義すると、インスタンスの辞書が固定長のスロットの値の配列と置き換えられます。ユーザーの目線からみ... - https://man.mtool.work/python/3.14/howto/descriptor.html
- デスクリプタ ガイド — Python 3.14.8 ドキュメント 10496
- ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » Python HOWTO » デスクリプタ ガイド テーマ 自動 ライト ダーク | デスクリプタ ガイド ¶ Author : Raymond Hettinger Contact : <python at rcn dot com> デスクリプタ を
...turn into bound methods or about the implementation of common tools like @classmethod , @staticmethod , @property , and __slots__ . 入門 ¶ この入門では、なるべく基礎的なところから開始し、新しい要素を一つずつ紹介していきます。 シンプルな例: 定数を返す...中には、あまりに一般的なので組み込みに追加されたものもあります。プロパティ、束縛のメソッド、静的メソッド、クラスメソッド、 __slots__ は、全てデスクリプタプロトコルに基づいています。 プロパティ ¶ property() を呼び出すことで、属性へアクセスすると関数の呼び...ように見えるよう、必要な属性を追加します: __name__ 、 __qualname__ 、 __doc__ 、 __annotations__ 。 メンバーオブジェクトと __slots__ ¶ クラスが __slots__ を定義すると、インスタンスの辞書が固定長のスロットの値の配列と置き換えられます。ユーザーの目線からみ... - https://man.mtool.work/python/3.14/howto/descriptor.html
- モジュールオブジェクト (module object) — Python 3.14.8 ドキュメント 10388
- ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » Python/C API reference manual » 具象オブジェクト (concrete object) レイヤ » モジュールオブジェクト (module object) テーマ 自動 ライト ダーク | モジュールオブジェ
...of module-level functions, described by PyMethodDef values. Can be NULL if no functions are present. PyModuleDef_Slot * m_slots ¶ An array of slot definitions for multi-phase initialization, terminated by a {0, NULL} entry. When using legacy single-p...hase initialization, m_slots must be NULL . バージョン 3.5 で変更: バージョン 3.5 より前は、このメンバは常に NULL に設定されていて、次のものとして定義さ...d. PyTypeObject PyModuleDef_Type ¶ 次に属します: Stable ABI (バージョン 3.5 より). The type of PyModuleDef objects. Module slots ¶ type PyModuleDef_Slot ¶ 次に属します: Stable ABI (すべてのメンバーを含む) (バージョン 3.5 より). int slot ¶ A slot ID, c... - https://man.mtool.work/python/3.14/c-api/module.html
- dataclasses --- データクラス — Python 3.14.8 ドキュメント 10388
- ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » The Python standard library » Python ランタイムサービス » dataclasses --- データクラス テーマ 自動 ライト ダーク | dataclasses --- データクラス ¶ ソースコード: L
...e , repr = True , eq = True , order = False , unsafe_hash = False , frozen = False , match_args = True , kw_only = False , slots = False , weakref_slot = False ) ¶ この関数は、後述する 特殊メソッド を生成し、クラスに追加する decorator です。 @dataclas...e , repr = True , eq = True , order = False , unsafe_hash = False , frozen = False , match_args = True , kw_only = False , slots = False , weakref_slot = False ) class C : ... The parameters to @dataclass are: init : If true (the default), a __init__(...for details. Also see the KW_ONLY section. Keyword-only fields are not included in __match_args__ . Added in version 3.10. slots : If true (the default is False ), __slots__ attribute will be generated and new class will be returned instead of the ori... - https://man.mtool.work/python/3.14/library/dataclasses.html
- モジュールオブジェクト (module object) — Python 3.14.8 ドキュメント 10388
- ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » Python/C API reference manual » 具象オブジェクト (concrete object) レイヤ » モジュールオブジェクト (module object) テーマ 自動 ライト ダーク | モジュールオブジェ
...of module-level functions, described by PyMethodDef values. Can be NULL if no functions are present. PyModuleDef_Slot * m_slots ¶ An array of slot definitions for multi-phase initialization, terminated by a {0, NULL} entry. When using legacy single-p...hase initialization, m_slots must be NULL . バージョン 3.5 で変更: バージョン 3.5 より前は、このメンバは常に NULL に設定されていて、次のものとして定義さ...d. PyTypeObject PyModuleDef_Type ¶ 次に属します: Stable ABI (バージョン 3.5 より). The type of PyModuleDef objects. Module slots ¶ type PyModuleDef_Slot ¶ 次に属します: Stable ABI (すべてのメンバーを含む) (バージョン 3.5 より). int slot ¶ A slot ID, c... - https://man.mtool.work/python/3.14/c-api/module.html
- dataclasses --- データクラス — Python 3.14.8 ドキュメント 10388
- ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » The Python standard library » Python ランタイムサービス » dataclasses --- データクラス テーマ 自動 ライト ダーク | dataclasses --- データクラス ¶ ソースコード: L
...e , repr = True , eq = True , order = False , unsafe_hash = False , frozen = False , match_args = True , kw_only = False , slots = False , weakref_slot = False ) ¶ この関数は、後述する 特殊メソッド を生成し、クラスに追加する decorator です。 @dataclas...e , repr = True , eq = True , order = False , unsafe_hash = False , frozen = False , match_args = True , kw_only = False , slots = False , weakref_slot = False ) class C : ... The parameters to @dataclass are: init : If true (the default), a __init__(...for details. Also see the KW_ONLY section. Keyword-only fields are not included in __match_args__ . Added in version 3.10. slots : If true (the default is False ), __slots__ attribute will be generated and new class will be returned instead of the ori... - https://man.mtool.work/python/3.14/library/dataclasses.html
- 2. 拡張の型の定義: チュートリアル — Python 3.14.8 ドキュメント 9705
- ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » Python インタプリタの拡張と埋め込み » 2. 拡張の型の定義: チュートリアル テーマ 自動 ライト ダーク | 2. 拡張の型の定義: チュートリアル ¶ Python では、組み込みの s
...ef ( m , "Custom" , ( PyObject * ) & CustomType ) < 0 ) { return -1 ; } return 0 ; } static PyModuleDef_Slot custom_module_slots [] = { { Py_mod_exec , custom_module_exec }, // Just use this while using static types { Py_mod_multiple_interpreters , Py...oduleDef_HEAD_INIT , . m_name = "custom" , . m_doc = "Example module that creates an extension type." , . m_size = 0 , . m_slots = custom_module_slots , }; PyMODINIT_FUNC PyInit_custom ( void ) { return PyModuleDef_Init ( & custom_module ); } 一度に把...ef ( m , "Custom" , ( PyObject * ) & CustomType ) < 0 ) { return -1 ; } return 0 ; } static PyModuleDef_Slot custom_module_slots [] = { { Py_mod_exec , custom_module_exec }, { Py_mod_multiple_interpreters , Py_MOD_MULTIPLE_INTERPRETERS_NOT_SUPPORTED }... - https://man.mtool.work/python/3.14/extending/newtypes_tutorial.html
- 2. 拡張の型の定義: チュートリアル — Python 3.14.8 ドキュメント 9705
- ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » Python インタプリタの拡張と埋め込み » 2. 拡張の型の定義: チュートリアル テーマ 自動 ライト ダーク | 2. 拡張の型の定義: チュートリアル ¶ Python では、組み込みの s
...ef ( m , "Custom" , ( PyObject * ) & CustomType ) < 0 ) { return -1 ; } return 0 ; } static PyModuleDef_Slot custom_module_slots [] = { { Py_mod_exec , custom_module_exec }, // Just use this while using static types { Py_mod_multiple_interpreters , Py...oduleDef_HEAD_INIT , . m_name = "custom" , . m_doc = "Example module that creates an extension type." , . m_size = 0 , . m_slots = custom_module_slots , }; PyMODINIT_FUNC PyInit_custom ( void ) { return PyModuleDef_Init ( & custom_module ); } 一度に把...ef ( m , "Custom" , ( PyObject * ) & CustomType ) < 0 ) { return -1 ; } return 0 ; } static PyModuleDef_Slot custom_module_slots [] = { { Py_mod_exec , custom_module_exec }, { Py_mod_multiple_interpreters , Py_MOD_MULTIPLE_INTERPRETERS_NOT_SUPPORTED }... - https://man.mtool.work/python/3.14/extending/newtypes_tutorial.html
- 3. データモデル — Python 3.14.8 ドキュメント 9370
- ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » Python 言語リファレンス » 3. データモデル テーマ 自動 ライト ダーク | 3. データモデル ¶ 3.1. オブジェクト、値、および型 ¶ Objects are Python's abstraction for da
...object used to store an object's (writable) attributes. Not all instances have a __dict__ attribute; see the section on __slots__ for more details. 3.2.12. I/O オブジェクト (ファイルオブジェクトの別名) ¶ file object は開かれたファイルを表します。ファ...corator is implemented as a data descriptor. Accordingly, instances cannot override the behavior of a property. 3.3.2.4. __slots__ ¶ __slots__ を使うと、(プロパティのように) データメンバを明示的に宣言し、 (明示的に __slots__ で宣言しているか親クラスに...す。 __dict__ を使うのに比べて、節約できるメモリ空間はかなり大きいです。 属性探索のスピードもかなり向上できます。 object. __slots__ ¶ このクラス変数には、インスタンスが用いる変数名を表す、文字列、イテラブル、または文字列のシーケンスを代入できます。 __s... - https://man.mtool.work/python/3.14/reference/datamodel.html
- 3. データモデル — Python 3.14.8 ドキュメント 9249
- ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » Python 言語リファレンス » 3. データモデル テーマ 自動 ライト ダーク | 3. データモデル ¶ 3.1. オブジェクト、値、および型 ¶ Objects are Python's abstraction for da
...object used to store an object's (writable) attributes. Not all instances have a __dict__ attribute; see the section on __slots__ for more details. 3.2.12. I/O オブジェクト (ファイルオブジェクトの別名) ¶ file object は開かれたファイルを表します。ファ...corator is implemented as a data descriptor. Accordingly, instances cannot override the behavior of a property. 3.3.2.4. __slots__ ¶ __slots__ を使うと、(プロパティのように) データメンバを明示的に宣言し、 (明示的に __slots__ で宣言しているか親クラスに...す。 __dict__ を使うのに比べて、節約できるメモリ空間はかなり大きいです。 属性探索のスピードもかなり向上できます。 object. __slots__ ¶ このクラス変数には、インスタンスが用いる変数名を表す、文字列、イテラブル、または文字列のシーケンスを代入できます。 __s... - https://man.mtool.work/python/3.14/reference/datamodel.html