New submission from Raymond Hettinger <raymond.hettin...@gmail.com>:

The existing API for the builtin hash() function is inconvenient.  When 
implementing structure that use a hash value, you never want a negative number. 
 Running abs(hash(x)) works but is awkward, slower, and loses one bit of 
entropy.

----------
components: Interpreter Core
messages: 349333
nosy: rhettinger, tim.peters
priority: normal
severity: normal
status: open
title: Make hash() return a non-negative number
type: enhancement
versions: Python 3.9

_______________________________________
Python tracker <rep...@bugs.python.org>
<https://bugs.python.org/issue37807>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to