8000 gh-105481: refactor instr flag related code into a new InstructionFlags class by iritkatriel · Pull Request #105950 · python/cpython · GitHub
[go: up one dir, main page]

Skip to content

gh-105481: refactor instr flag related code into a new InstructionFlags class #105950

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

Merged
merged 5 commits into from
Jun 21, 2023
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
8000
Diff view
Diff view
Prev Previous commit
Next Next commit
remove __hash__ and __eq__
  • Loading branch information
iritkatriel committed Jun 21, 2023
commit d383eaa246c340de63e2e90ca50e3603a83ddabb
6 changes: 0 additions & 6 deletions Tools/cases_generator/generate_cases.py
Original file line number Diff line number Diff line change
Expand Up @@ -261,12 +261,6 @@ def fromInstruction(instr: "AnyInstruction"):
def newEmpty():
return InstructionFlags(False, False, False, False)

def __eq__(self, other: "InstructionFlags") -> False:
return self.bitmap() == other.bitmap()

def __hash__(self) -> int:
return hash(self.bitmap())

def add(self, other: "InstructionFlags") -> None:
for name, value in dataclasses.asdict(other).items():
if value:
Expand Down
0