Skip to content
This repository has been archived by the owner on Jan 30, 2023. It is now read-only.

Commit

Permalink
Trac 30266: hash function slightly improved
Browse files Browse the repository at this point in the history
  • Loading branch information
Michael Jung committed Aug 3, 2020
1 parent 0bf9f36 commit a5f6a19
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/sage/manifolds/scalarfield.py
Original file line number Diff line number Diff line change
Expand Up @@ -3536,5 +3536,5 @@ def __hash__(self):
if self.is_mutable():
raise ValueError('element must be immutable in order to be '
'hashable')
return hash(self._manifold)
return hash((type(self).__name__, self._manifold))

0 comments on commit a5f6a19

Please sign in to comment.