Results of 1 - 10 of about 124 for members (0.008 sec.)
- enum --- 列挙型のサポート — Python 3.14.8 ドキュメント 11339
- ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » The Python standard library » データ型 » enum --- 列挙型のサポート テーマ 自動 ライト ダーク | enum --- 列挙型のサポート ¶ Added in version 3.4. ソースコード: Li
...r obj をメンバーにしません。デコレータとして使用できます。 @global_enum Modify the str() and repr() of an enum to show its members as belonging to the module instead of its class, and export the enum members to the global namespace. show_flag_values() フ...correct __repr__() , __str__() , __format__() , and __reduce__() methods on the final enum , as well as creating the enum members, properly handling duplicates, providing iteration over the enum class, etc. Added in version 3.11: Before 3.11 EnumType w...以前では、非Enumメンバーの包含判定が行われた場合、 TypeError が送出されます。 __dir__ ( cls ) ¶ ['__class__', '__doc__', '__members__', '__module__'] と、 cls に属するメンバー名を返します: >>> dir ( Color ) ['BLUE', 'GREEN', 'RED', '__class__', '__contai... - https://man.mtool.work/python/3.14/library/enum.html
- enum --- 列挙型のサポート — Python 3.14.8 ドキュメント 11339
- ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » The Python standard library » データ型 » enum --- 列挙型のサポート テーマ 自動 ライト ダーク | enum --- 列挙型のサポート ¶ Added in version 3.4. ソースコード: Li
...r obj をメンバーにしません。デコレータとして使用できます。 @global_enum Modify the str() and repr() of an enum to show its members as belonging to the module instead of its class, and export the enum members to the global namespace. show_flag_values() フ...correct __repr__() , __str__() , __format__() , and __reduce__() methods on the final enum , as well as creating the enum members, properly handling duplicates, providing iteration over the enum class, etc. Added in version 3.11: Before 3.11 EnumType w...以前では、非Enumメンバーの包含判定が行われた場合、 TypeError が送出されます。 __dir__ ( cls ) ¶ ['__class__', '__doc__', '__members__', '__module__'] と、 cls に属するメンバー名を返します: >>> dir ( Color ) ['BLUE', 'GREEN', 'RED', '__class__', '__contai... - https://man.mtool.work/python/3.14/library/enum.html
- 2. 拡張の型の定義: チュートリアル — Python 3.14.8 ドキュメント 10797
- ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » Python インタプリタの拡張と埋め込み » 2. 拡張の型の定義: チュートリアル テーマ 自動 ライト ダーク | 2. 拡張の型の定義: チュートリアル ¶ Python では、組み込みの s
...Most of the time, this will be true anyway, because either your base type will be object , or else you will be adding data members to your base type, and therefore increasing its size. Py_TPFLAGS_DEFAULT にクラスフラグを設定します。 . tp_flags = Py_TPFL...wRef ( first )); } if ( last ) { Py_XSETREF ( self -> last , Py_NewRef ( last )); } return 0 ; } static PyMemberDef Custom_members [] = { { "first" , Py_T_OBJECT_EX , offsetof ( CustomObject , first ), 0 , "first name" }, { "last" , Py_T_OBJECT_EX , off...AGS_DEFAULT | Py_TPFLAGS_BASETYPE , . tp_new = Custom_new , . tp_init = Custom_init , . tp_dealloc = Custom_dealloc , . tp_members = Custom_members , . tp_methods = Custom_methods , }; static int custom_module_exec ( PyObject * m ) { if ( PyType_Ready (... - https://man.mtool.work/python/3.14/extending/newtypes_tutorial.html
- 2. 拡張の型の定義: チュートリアル — Python 3.14.8 ドキュメント 10797
- ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » Python インタプリタの拡張と埋め込み » 2. 拡張の型の定義: チュートリアル テーマ 自動 ライト ダーク | 2. 拡張の型の定義: チュートリアル ¶ Python では、組み込みの s
...Most of the time, this will be true anyway, because either your base type will be object , or else you will be adding data members to your base type, and therefore increasing its size. Py_TPFLAGS_DEFAULT にクラスフラグを設定します。 . tp_flags = Py_TPFL...wRef ( first )); } if ( last ) { Py_XSETREF ( self -> last , Py_NewRef ( last )); } return 0 ; } static PyMemberDef Custom_members [] = { { "first" , Py_T_OBJECT_EX , offsetof ( CustomObject , first ), 0 , "first name" }, { "last" , Py_T_OBJECT_EX , off...AGS_DEFAULT | Py_TPFLAGS_BASETYPE , . tp_new = Custom_new , . tp_init = Custom_init , . tp_dealloc = Custom_dealloc , . tp_members = Custom_members , . tp_methods = Custom_methods , }; static int custom_module_exec ( PyObject * m ) { if ( PyType_Ready (... - https://man.mtool.work/python/3.14/extending/newtypes_tutorial.html
- 列挙型 HOWTO — Python 3.14.8 ドキュメント 10588
- ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » Python HOWTO » 列挙型 HOWTO テーマ 自動 ライト ダーク | 列挙型 HOWTO ¶ Enum は、ユニークな値に束縛されたシンボル名の集合です。グローバル変数に似ていますが、 repr
...バの属する列挙型です: >>> type ( Weekday . MONDAY ) <enum 'Weekday'> >>> isinstance ( Weekday . FRIDAY , Weekday ) True Enum members have an attribute that contains just their name : >>> print ( Weekday . TUESDAY . name ) TUESDAY Likewise, they have an at...member in Ordinal ] ['NORTH', 'SOUTH', 'EAST', 'WEST'] 注釈 The _generate_next_value_() method must be defined before any members. イテレーション ¶ 列挙型のメンバーのイテレートは別名をサポートしていません: >>> list ( Shape ) [<Shape.SQUARE: 2>, <Shape....: 64>] エイリアスである Shape.ALIAS_FOR_SQUARE と``Weekday.WEEKEND`` が表示されていないことに注意してください。 特殊属性 __members__ は読み出し専用で、順序を保持した、対応する名前と列挙型メンバーのマッピングです。これには別名も含め、列挙されたすべての名... - https://man.mtool.work/python/3.14/howto/enum.html
- 列挙型 HOWTO — Python 3.14.8 ドキュメント 10379
- ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » Python HOWTO » 列挙型 HOWTO テーマ 自動 ライト ダーク | 列挙型 HOWTO ¶ Enum は、ユニークな値に束縛されたシンボル名の集合です。グローバル変数に似ていますが、 repr
...バの属する列挙型です: >>> type ( Weekday . MONDAY ) <enum 'Weekday'> >>> isinstance ( Weekday . FRIDAY , Weekday ) True Enum members have an attribute that contains just their name : >>> print ( Weekday . TUESDAY . name ) TUESDAY Likewise, they have an at...member in Ordinal ] ['NORTH', 'SOUTH', 'EAST', 'WEST'] 注釈 The _generate_next_value_() method must be defined before any members. イテレーション ¶ 列挙型のメンバーのイテレートは別名をサポートしていません: >>> list ( Shape ) [<Shape.SQUARE: 2>, <Shape....: 64>] エイリアスである Shape.ALIAS_FOR_SQUARE と``Weekday.WEEKEND`` が表示されていないことに注意してください。 特殊属性 __members__ は読み出し専用で、順序を保持した、対応する名前と列挙型メンバーのマッピングです。これには別名も含め、列挙されたすべての名... - https://man.mtool.work/python/3.14/howto/enum.html
- 共通のオブジェクト構造体 (common object structure) — Python 3.14.8 ドキュメント 8236
- ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » Python/C API reference manual » オブジェクト実装サポート (object implementation support) » 共通のオブジェクト構造体 (common object structure) テーマ 自動 ライト
...ct. Nothing is actually declared to be a PyObject , but every pointer to a Python object can be cast to a PyObject * . The members must not be accessed directly; instead use macros such as Py_REFCNT and Py_TYPE . Py_ssize_t ob_refcnt ¶ 次に属します: Sta...yObject that adds the ob_size field. This is intended for objects that have some notion of length . As with PyObject , the members must not be accessed directly; instead use macros such as Py_SIZE , Py_REFCNT and Py_TYPE . Py_ssize_t ob_size ¶ 次に属しま...e which corresponds to a C struct member. When defining a class, put a NULL-terminated array of these structures in the tp_members slot. Its fields are, in order: const char * name ¶ Name of the member. A NULL value marks the end of a PyMemberDef[] arra... - https://man.mtool.work/python/3.14/c-api/structures.html
- 共通のオブジェクト構造体 (common object structure) — Python 3.14.8 ドキュメント 8236
- ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » Python/C API reference manual » オブジェクト実装サポート (object implementation support) » 共通のオブジェクト構造体 (common object structure) テーマ 自動 ライト
...ct. Nothing is actually declared to be a PyObject , but every pointer to a Python object can be cast to a PyObject * . The members must not be accessed directly; instead use macros such as Py_REFCNT and Py_TYPE . Py_ssize_t ob_refcnt ¶ 次に属します: Sta...yObject that adds the ob_size field. This is intended for objects that have some notion of length . As with PyObject , the members must not be accessed directly; instead use macros such as Py_SIZE , Py_REFCNT and Py_TYPE . Py_ssize_t ob_size ¶ 次に属しま...e which corresponds to a C struct member. When defining a class, put a NULL-terminated array of these structures in the tp_members slot. Its fields are, in order: const char * name ¶ Name of the member. A NULL value marks the end of a PyMemberDef[] arra... - https://man.mtool.work/python/3.14/c-api/structures.html
- tarfile --- tar アーカイブファイルの読み書き — Python 3.14.8 ドキュメント 8027
- ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » The Python standard library » データ圧縮とアーカイブ » tarfile --- tar アーカイブファイルの読み書き テーマ 自動 ライト ダーク | tarfile --- tar アーカイブファイル
...nfo.frombuf() メソッドが取得したバッファーが不正だったときに送出されます。 exception tarfile. FilterError ¶ Base class for members refused by filters. tarinfo ¶ Information about the member that the filter refused to extract, as TarInfo . exception tarf...送出されます。 注釈 アーカイブ内にメンバーが複数ある場合は、最後に出現するものが最新のバージョンとみなされます。 TarFile. getmembers ( ) ¶ TarInfo アーカイブのメンバーをオブジェクトのリストとして返します。このリストはアーカイブ内のメンバーと同じ順番です。...TarFile. getnames ( ) ¶ メンバーをその名前のリストを返します。これは getmembers() で返されるリストと同じ順番です。 TarFile. list ( verbose = True , * , members = None ) ¶ 内容の一覧を sys.stdout に出力し... - https://man.mtool.work/python/3.14/library/tarfile.html
- tarfile --- tar アーカイブファイルの読み書き — Python 3.14.8 ドキュメント 8027
- ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » The Python standard library » データ圧縮とアーカイブ » tarfile --- tar アーカイブファイルの読み書き テーマ 自動 ライト ダーク | tarfile --- tar アーカイブファイル
...nfo.frombuf() メソッドが取得したバッファーが不正だったときに送出されます。 exception tarfile. FilterError ¶ Base class for members refused by filters. tarinfo ¶ Information about the member that the filter refused to extract, as TarInfo . exception tarf...送出されます。 注釈 アーカイブ内にメンバーが複数ある場合は、最後に出現するものが最新のバージョンとみなされます。 TarFile. getmembers ( ) ¶ TarInfo アーカイブのメンバーをオブジェクトのリストとして返します。このリストはアーカイブ内のメンバーと同じ順番です。...TarFile. getnames ( ) ¶ メンバーをその名前のリストを返します。これは getmembers() で返されるリストと同じ順番です。 TarFile. list ( verbose = True , * , members = None ) ¶ 内容の一覧を sys.stdout に出力し... - https://man.mtool.work/python/3.14/library/tarfile.html