tmr232/Sark

CodeBlock equality is not implemented

Closed this issue · 3 comments

Hi,

When you write:
block_list = [sark.CodeBlock()]
sark.CodeBlock() in block_list

you get False.
It would be very nice to have equality of CodeBlocks so it won't be necessary to write my own equality function.

That seems a great idea. I'll try to get to it as soon as I can.
Feel free to submit a PR in the meantime.

Can you take a look and see that the PR fixes the issue for you?

Yea it fixes, thank you