__eq__ not logical
See original GitHub issueWhen you want to check if a COMMANDCENTER is in a list, you need to calculate the tag list instead of checking the list itself. I think this behaviour applies to all units (didn’t check). But this adds calculus and lines for nothing. Enhancement would be:
class XXXX(...): #I don't know the name of the class
def __eq__(self, other):
return self.tag == other.tag
def __ne__(self, other):
return self.tag != other.tag
...etc
Issue Analytics
- State:
- Created 5 years ago
- Comments:5 (2 by maintainers)
Top Results From Across the Web
Logical equality - Wikipedia
Logical equality is a logical operator that corresponds to equality in Boolean algebra and ... This explains why "EQ" is often called "XNOR"...
Read more >Logic EQ not working. HELP! - Apple Support Communities
Everytime I use the Logic 9 pro in-built EQ and add the lower end cut, when i play the track it just keeps...
Read more >How I Solved My EQ Woes With These 3 Unlikely Logic Plugins
EQ – the one processor to rule them all. Taking separate, sometimes disparate tracks and fitting them together into one cohesive mix?
Read more >EQ vs IQ - Difference and Comparison - Diffen
Emotional Intelligence, or emotional quotient (EQ), is defined as an individual's ... IQ covers logical reasoning, word comprehension and math skills.
Read more >IQ vs. EQ: How Are They Different? - Verywell Mind
Some psychologists believe that standard measures of intelligence (i.e. IQ scores) are too narrow and do not encompass the full range of human ......
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
I agree that it would make sense to determine equality by tag. I was creating custom Units objects and it was sometimes easier to compare than filter() or find_by_tag().
This doesn’t solve the issue, you still can’t determine if a commandcenter is in a list/unit-group without having to filter the list/unit-group looking for each commandcenter.