vstinner · GitHub

@vstinner

@vstinner

@vstinner

Closed

@vstinner vstinner changed the title gh-132825: Change unhashable key error messages for dict and set gh-132825: Enhance unhashable error messages for dict and set

Apr 23, 2025

cfbolz

Copy link Copy Markdown

Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think this is great thanks for working on this right away, Victor! As @methane pointed out, maybe Cannot -> cannot. We don't have a style guide or anything for exception messages, so maybe it doesn't matter either.

@vstinner

@vstinner

Copy link Copy Markdown

Member Author

maybe Cannot -> cannot

Done: I replaced "Cannot ..." with "cannot ...".

cfbolz

@rhettinger

@cfbolz

@vstinner

@matthiask

Copy link Copy Markdown

Thanks for this improvement! One minor nit: I like wordplays but I'm not sure if the T in unhashTable has been introduced on purpose?

@vstinner

Copy link Copy Markdown

Member Author

Thanks for this improvement! One minor nit: I like wordplays but I'm not sure if the T in unhashTable has been introduced on purpose?

It wasn't done on purpose, it's a typo :-( I wrote #132847 to fix the typo.

Open

Read the original on github.com ↗