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

Improve "hash brownies" example and explanation #76

Closed
wants to merge 1 commit into from

Conversation

jab
Copy link

@jab jab commented Mar 27, 2018

I found the current "hash brownies" example and explanation confusing, so I'm proposing these changes.

This is clearer because it focuses on equivalence as the key principle first, without muddying the waters with hashing and immutability up front.

Once this does mention hashing, it explains it in the context of being a performance optimization (which is all it is), not as something that is central to what containment in a dict actually means.

Hope this helps!

@cclauss
Copy link
Contributor

cclauss commented Dec 26, 2019

Resolve conflicts?

@jab
Copy link
Author

jab commented Dec 28, 2019

I'll leave it up to @satwikkansal, whose 7b22f84 (in response to my #77) landed before this did with overlapping intent.

@satwikkansal
Copy link
Owner

Sorry, totally forgot about this PR. Addressed this PR in the recent commit 185d60c, I think it can be closed now.

@matkoniecz
Copy link

I think it can be closed now.

In such case I would recommend closing it.

muscliary pushed a commit to muscliary/wtfpython that referenced this pull request Sep 12, 2023
@jab jab closed this Oct 12, 2023
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.

4 participants