Results of 1 - 10 of about 101 for Enum (0.041 sec.)
- enum --- 列挙型のサポート — Python 3.14.8 ドキュメント 12167
- ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » The Python standard library » データ型 » enum --- 列挙型のサポート テーマ 自動 ライト ダーク | enum --- 列挙型のサポート ¶ Added in version 3.4. ソースコード: Li
...b/enum.py Important このページには、リファレンス情報だけが含まれています。チュートリアルは、以下のページを参照してください 基本チ...ュートリアル 上級チュートリアル Enum クックブック 列挙型とは: 一意の値に紐付けられたシンボリックな名前の集合です 反復可能であり、定義順にその正規の(エイリアス...すために、 インデックス 構文を使用します 列挙型は、 class 構文を使用するか、関数呼び出し構文を使用して作成されます: >>> from enum import Enum >>> # class syntax >>> class Color ( Enum ): ... RED = 1 ... GREEN = 2 ... BLUE = 3 >>> # functional syntax >>... - https://man.mtool.work/python/3.14/library/enum.html
- enum --- 列挙型のサポート — Python 3.14.8 ドキュメント 12167
- ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » The Python standard library » データ型 » enum --- 列挙型のサポート テーマ 自動 ライト ダーク | enum --- 列挙型のサポート ¶ Added in version 3.4. ソースコード: Li
...b/enum.py Important このページには、リファレンス情報だけが含まれています。チュートリアルは、以下のページを参照してください 基本チ...ュートリアル 上級チュートリアル Enum クックブック 列挙型とは: 一意の値に紐付けられたシンボリックな名前の集合です 反復可能であり、定義順にその正規の(エイリアス...すために、 インデックス 構文を使用します 列挙型は、 class 構文を使用するか、関数呼び出し構文を使用して作成されます: >>> from enum import Enum >>> # class syntax >>> class Color ( Enum ): ... RED = 1 ... GREEN = 2 ... BLUE = 3 >>> # functional syntax >>... - https://man.mtool.work/python/3.14/library/enum.html
- 列挙型 HOWTO — Python 3.14.8 ドキュメント 11713
- ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » Python HOWTO » 列挙型 HOWTO テーマ 自動 ライト ダーク | 列挙型 HOWTO ¶ Enum は、ユニークな値に束縛されたシンボル名の集合です。グローバル変数に似ていますが、 repr
...かの機能があります。 これらは、限られた選択肢の値の一つを取る変数がある場合に便利です。例えば、曜日情報があります: >>> from enum import Enum >>> class Weekday ( Enum ): ... MONDAY = 1 ... TUESDAY = 2 ... WEDNESDAY = 3 ... THURSDAY = 4 ... FRIDAY = 5 ...... SATURDAY = 6 ... SUNDAY = 7 あるいは、RGB三原色でも構いません: >>> from enum import Enum >>> class Color ( Enum ): ... RED = 1 ... GREEN = 2 ... BLUE = 3 ご覧の通り、 Enum の作成は Enum 自体を継承する...クラスを作成するのと同じくらい簡単です。 注釈 Enumメンバーは大文字/小文字? 列挙型は定数を表すために使われるため、また mixin クラスのメソッドや属性との名前の衝突の問題を回避す... - https://man.mtool.work/python/3.14/howto/enum.html
- 列挙型 HOWTO — Python 3.14.8 ドキュメント 11713
- ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » Python HOWTO » 列挙型 HOWTO テーマ 自動 ライト ダーク | 列挙型 HOWTO ¶ Enum は、ユニークな値に束縛されたシンボル名の集合です。グローバル変数に似ていますが、 repr
...かの機能があります。 これらは、限られた選択肢の値の一つを取る変数がある場合に便利です。例えば、曜日情報があります: >>> from enum import Enum >>> class Weekday ( Enum ): ... MONDAY = 1 ... TUESDAY = 2 ... WEDNESDAY = 3 ... THURSDAY = 4 ... FRIDAY = 5 ...... SATURDAY = 6 ... SUNDAY = 7 あるいは、RGB三原色でも構いません: >>> from enum import Enum >>> class Color ( Enum ): ... RED = 1 ... GREEN = 2 ... BLUE = 3 ご覧の通り、 Enum の作成は Enum 自体を継承する...クラスを作成するのと同じくらい簡単です。 注釈 Enumメンバーは大文字/小文字? 列挙型は定数を表すために使われるため、また mixin クラスのメソッドや属性との名前の衝突の問題を回避す... - https://man.mtool.work/python/3.14/howto/enum.html
- 索引 — Python 3.14.8 ドキュメント 10364
- ナビゲーション 索引 モジュール | Python » 3.14.8 Documentation » 索引 テーマ 自動 ライト ダーク | Index – _ _ (下線) gettext in numeric literal , [1] 文字列のフォーマットで _, identifiers __, identifiers __abs__() (object のメソッド) (opera
...のメソッド) __aiter__() (object のメソッド) __all__ (module の属性) (package variable) (オプションの module 属性) __and__() (enum.Flag のメソッド) (object のメソッド) (operator モジュール) __anext__() (agen のメソッド) (object のメソッド) __annotate__...__await__() (object のメソッド) __base__ (class attribute) (type の属性) __bases__ (type の属性) (クラス属性) __bool__() (enum.Flag のメソッド) (object のメソッド) (オブジェクトメソッド) __bound__ (typing.TypeVar の属性) __breakpointhook__ (sys モジ...odule attribute) (module の属性) __call__() (argparse.Action のメソッド) (email.headerregistry.HeaderRegistry のメソッド) (enum.EnumType のメソッド) (object のメソッド) (operator モジュール) (weakref.finalize のメソッド) (オブジェクトメソッド) __call... - https://man.mtool.work/python/3.14/genindex-_.html
- 索引 — Python 3.14.8 ドキュメント 10325
- ナビゲーション 索引 モジュール | Python » 3.14.8 Documentation » 索引 テーマ 自動 ライト ダーク | Index – _ _ (下線) gettext in numeric literal , [1] 文字列のフォーマットで _, identifiers __, identifiers __abs__() (object のメソッド) (opera
...のメソッド) __aiter__() (object のメソッド) __all__ (module の属性) (package variable) (オプションの module 属性) __and__() (enum.Flag のメソッド) (object のメソッド) (operator モジュール) __anext__() (agen のメソッド) (object のメソッド) __annotate__...__await__() (object のメソッド) __base__ (class attribute) (type の属性) __bases__ (type の属性) (クラス属性) __bool__() (enum.Flag のメソッド) (object のメソッド) (オブジェクトメソッド) __bound__ (typing.TypeVar の属性) __breakpointhook__ (sys モジ...odule attribute) (module の属性) __call__() (argparse.Action のメソッド) (email.headerregistry.HeaderRegistry のメソッド) (enum.EnumType のメソッド) (object のメソッド) (operator モジュール) (weakref.finalize のメソッド) (オブジェクトメソッド) __call... - https://man.mtool.work/python/3.14/genindex-_.html
- 索引 — Python 3.14.8 ドキュメント 8016
- ナビゲーション 索引 モジュール | 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 | イ | エ | オ | カ | キ
...のメソッド) __aiter__() (object のメソッド) __all__ (module の属性) (package variable) (オプションの module 属性) __and__() (enum.Flag のメソッド) (object のメソッド) (operator モジュール) __anext__() (agen のメソッド) (object のメソッド) __annotate__...__await__() (object のメソッド) __base__ (class attribute) (type の属性) __bases__ (type の属性) (クラス属性) __bool__() (enum.Flag のメソッド) (object のメソッド) (オブジェクトメソッド) __bound__ (typing.TypeVar の属性) __breakpointhook__ (sys モジ...odule attribute) (module の属性) __call__() (argparse.Action のメソッド) (email.headerregistry.HeaderRegistry のメソッド) (enum.EnumType のメソッド) (object のメソッド) (operator モジュール) (weakref.finalize のメソッド) (オブジェクトメソッド) __call... - https://man.mtool.work/python/3.14/genindex-all.html
- 索引 — Python 3.14.8 ドキュメント 7562
- ナビゲーション 索引 モジュール | 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 | イ | エ | オ | カ | キ
...のメソッド) __aiter__() (object のメソッド) __all__ (module の属性) (package variable) (オプションの module 属性) __and__() (enum.Flag のメソッド) (object のメソッド) (operator モジュール) __anext__() (agen のメソッド) (object のメソッド) __annotate__...__await__() (object のメソッド) __base__ (class attribute) (type の属性) __bases__ (type の属性) (クラス属性) __bool__() (enum.Flag のメソッド) (object のメソッド) (オブジェクトメソッド) __bound__ (typing.TypeVar の属性) __breakpointhook__ (sys モジ...odule attribute) (module の属性) __call__() (argparse.Action のメソッド) (email.headerregistry.HeaderRegistry のメソッド) (enum.EnumType のメソッド) (object のメソッド) (operator モジュール) (weakref.finalize のメソッド) (オブジェクトメソッド) __call... - https://man.mtool.work/python/3.14/genindex-all.html
- 変更履歴 — Python 3.14.8 ドキュメント 7329
- ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » What's New in Python » 変更履歴 テーマ 自動 ライト ダーク | 変更履歴 ¶ Python next ¶ Release date: XXXX-XX-XX セキュリティ ¶ gh-157265 : In tarfile , when extrac
...that has a task with a name longer than 255 characters. gh-157660 : Fix _remote_debugging reporting errors or incorrect line numbers in free-threaded builds when a thread-local bytecode array grows or gains entries after being cached. gh-157672 : Fix...link pointing outside the destination directory. This was a bypass of CVE 2025-4330 . gh-150743 : http.client now limits the number of chunked-response trailer lines it will read to 100, and the number of interim (1xx) responses it will skip to 100....y nested __parameters__ from a types.GenericAlias objects. gh-153932 : Fix thread safety issue in the __reduce__ method of enumerate . gh-153298 : Fixes a data race in types.GenericAlias __parameters__ initialization on free-threading builds. gh-1532... - https://man.mtool.work/python/3.14/whatsnew/changelog.html
- What's New In Python 3.11 — Python 3.14.8 ドキュメント 6771
- ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » What's New in Python » What's New In Python 3.11 テーマ 自動 ライト ダーク | What's New In Python 3.11 ¶ 編集者 : Pablo Galindo Salgado この記事では Python 3.10
...bases other than 2 (binary), 4, 8 (octal), 16 (hexadecimal), or 32 such as base 10 (decimal) now raises a ValueError if the number of digits in string form is above a limit to avoid potential denial of service attacks due to the algorithmic complexi...O 8601 formats (barring only those that support fractional hours and minutes). (Contributed by Paul Ganssle in gh-80010 .) enum ¶ Renamed EnumMeta to EnumType ( EnumMeta kept as an alias). Added StrEnum , with members that can be used as (and must be...) strings. Added ReprEnum , which only modifies the __repr__() of members while returning their literal values (rather than names) for __str__() and... - https://man.mtool.work/python/3.14/whatsnew/3.11.html