Skip to content
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

Add hash method to node class #75

Merged
merged 1 commit into from
Mar 3, 2022
Merged

Conversation

lacraig2
Copy link
Contributor

The class node is essentially a wrapper around a dict.

Adding a hash method makes it compatible with a lot of data structures (e.g. set).

@idank
Copy link
Owner

idank commented Mar 1, 2022

Thanks for the pull request. Can you please reword the commit message to

ast: add hash method to node

@lacraig2
Copy link
Contributor Author

lacraig2 commented Mar 1, 2022

Sure. Done.

@idank idank merged commit 0720647 into idank:master Mar 3, 2022
@lacraig2 lacraig2 deleted the make_hashable branch March 3, 2022 16:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants