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
py3: implement PolyDict.__hash__ #24761
Comments
Dependencies: #24760 |
comment:3
Instead of sorting the output, I would use a |
comment:4
Just one detail: |
comment:5
does not apply |
comment:6
Replying to @tscrim:
Yes, I think you have a point there. I'll try it out. |
comment:7
Replying to @jdemeyer:
Interesting--I'd have just assumed they would optimize that, but I guess technically you can't since many objects' |
comment:8
Replying to @embray:
Indeed. Cython really wants to be Python-compatible. This also explains why you shouldn't do |
Changed dependencies from #24759 to none |
Reviewer: Frédéric Chapoton |
comment:12
ok |
Changed branch from u/embray/polydict-hash to |
This type needs to have an explicit
__hash__
implementation for Python 3.Although its underlying data structure is a mutable
dict
, it's not intended to be mutated and the API generally disallows this (it still might be better if it used an immutable dict).Component: python3
Author: Erik Bray
Branch/Commit:
4f5e114
Reviewer: Frédéric Chapoton
Issue created by migration from https://trac.sagemath.org/ticket/24761
The text was updated successfully, but these errors were encountered: