Details
Diff Detail
Event Timeline
bindings/python/llvm/core.py | ||
---|---|---|
403 | == should be = | |
utils/gdb-scripts/prettyprinters.py | ||
84 | Should be next = __next__ | |
90 | This line is just wrong in the original. It creates a variable __next__ that is set to the built in next function. It serves no use and should be deleted. | |
175 | I see at line 183: |
utils/gdb-scripts/prettyprinters.py | ||
---|---|---|
84 | I made the move to make it clear that python3 should be the default standard, and the ugly boilerplate is the python2 compatibility. | |
90 | Correct! I've been in auto-fix mode for some of these commits, thanks *a lot* for spotting all these mistakes. | |
175 | For the reasons given above, I still made the change, and fixed the behavior below. I also checked the other next implementation. |
utils/gdb-scripts/prettyprinters.py | ||
---|---|---|
185 | makor -> major |
bindings/python/llvm/core.py | ||
---|---|---|
248 | I had a poke around this file and found that self.function.next refers to the next property in the Function class. I don't think the Function class should be changed as it isn't intended to be an iterator, and therefore the change to this line should be reverted. | |
319 | Likewise, self.bb.next is a property of BasicBlock. | |
399 | Likewise, self.inst.next is a property of Instruction. | |
bindings/python/llvm/tests/test_core.py | ||
101 | I think this refers to the next property of the Function class in core.py. The change on this line should be reverted. |
I had a poke around this file and found that self.function.next refers to the next property in the Function class. I don't think the Function class should be changed as it isn't intended to be an iterator, and therefore the change to this line should be reverted.