Ville Skyttä

Results 283 comments of Ville Skyttä

To me the `IntEnum` thing is, as the quoted snippet reads, "Comparisons against non-enumeration values ...". My example and this issue is not really comparing against non-enumeration values, it's about...

As far as opinionatedness goes, we do have `singleton-comparison` enabled by default already, and IMO the checks to use `is` when comparing explicitly against `None` or the booleans is in...

> In case someone uses `IntEnum` or `StrEnum` they most likely what it to compare to ints and strings. They can do so by actually comparing to ints and strings,...

>> As for Colored.RED == Color.RED, that will already be false since enums are singletons. > As noted in earlier comments here, this does not hold universally. There actually wasn't...

Ok, let's stop the "as said" circle, it doesn't seem to be going anywhere. One final try/question: do you think the advice at https://docs.python.org/3/library/enum.html#comparisons is misguided, or disagree with it...

> When you're comparing enum with equality you control the enum class The enum classes whose members one compares (no matter how) can be defined in 3rd party code, outside...

Yep, that's the issue: "Result: choice: 1" vs "Choose: Option 2 executed"

I haven't really used this view in a long time, but IIRC the problem I had with it was, that I would have liked to go and modify one of...