Skip to content

enum.Flagの説明についての記載ミス #1003

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
noymer opened this issue Mar 8, 2025 · 0 comments
Open

enum.Flagの説明についての記載ミス #1003

noymer opened this issue Mar 8, 2025 · 0 comments

Comments

@noymer
Copy link

noymer commented Mar 8, 2025

概要

enum.Flagの日本語訳について、説明が間違っている。

Flag

列挙型定数を作成する基底クラスで、ビット演算を使って組み合わせられ、その結果も IntFlag メンバーになります。

問題のある箇所 (URLで指定すること)

https://docs.python.org/ja/3.13/library/enum.html#module-contents

問題の詳細

enum.Flag のビット演算の結果が enum.IntFlagとなると書いてしまっている。

Flag

列挙型定数を作成する基底クラスで、ビット演算を使って組み合わせられ、その結果も IntFlag メンバーになります。

Image

修正案

英語版 の通り、IntFlagではなくFlagにする。

- 列挙型定数を作成する基底クラスで、ビット演算を使って組み合わせられ、その結果も [IntFlag](https://docs.python.org/ja/3.13/library/enum.html#enum.IntFlag) メンバーになります。

+ 列挙型定数を作成する基底クラスで、ビット演算を使って組み合わせられ、その結果も [Flag](https://docs.python.org/ja/3.13/library/enum.html#enum.Flag) メンバーになります。
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant