[New-bugs-announce] [issue8188] Unified hash for numeric types.

Mark Dickinson report at bugs.python.org
Sat Mar 20 21:34:30 CET 2010


New submission from Mark Dickinson <dickinsm at gmail.com>:

Here's a patch that makes hash(x) == hash(y) for any numeric types (int, float, complex, Decimal, Fraction, bool) when x and y are numerically equal.

This is a prerequisite for making all numeric types accurately comparable with each other.

----------
files: numeric_hash.patch
keywords: patch
messages: 101395
nosy: mark.dickinson
severity: normal
status: open
title: Unified hash for numeric types.
type: feature request
versions: Python 3.2
Added file: http://bugs.python.org/file16604/numeric_hash.patch

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue8188>
_______________________________________


More information about the New-bugs-announce mailing list