Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

Required fields*

3
  • You could also use the hash() built-in function instead of going to the method directly. Commented Apr 1, 2016 at 20:02
  • Thanks, @zondo - I've already updated it, but I appreciate the comment. Commented Apr 1, 2016 at 20:04
  • @zondo However, it was important for me to mention this method, as perhaps the OP's motivation was to avoid recalculating the hash value, and my point was that it could be cached within the __hash__ method. Commented Apr 1, 2016 at 20:05