Support comparison operators for enums
See original GitHub issueThe issue can be reproduced by modifying this test with the following code:
public void FilterByEnumField() {
var structObj = new Structs();
AssertEvaluation(structObj, "enum", "<", 3);
}
Issue Analytics
- State:
- Created 6 years ago
- Comments:5 (5 by maintainers)
Top Results From Across the Web
redefinition of comparison operators of enums - c++
The problem here, it seems, is that you think (unscoped) enumerations are equal to integers. Like I said in my comment, enumeration values ......
Read more >Enum filters should support comparison operators #20441
Enum filters should support comparison operators #20441 ... comparison operators and related aggregate functions are supported for enums.
Read more >Build Enumerations of Constants With Python's Enum
This module provides the Enum class for supporting general-purpose ... By default, enums support two types of comparison operators:.
Read more >A global Enum for comparison operators
So, I built an Enum and a function to use it to evaluate logical expressions. Is this a good, maintainable, scalable approach? Public...
Read more >enum — Support for enumerations
New in version 3.11. Flag members support the bitwise operators & (AND), | (OR), ^ (XOR), and ~ (INVERT); the results of those...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Since there’s no outstanding issue in T584721, I mark this as
enhancement
. Easy to implement as soon as we understand use cases.@shcheglovvladimir has reported this issue today. The same case as in #339 (filter issued by Data Grid to find focused row index).