[New-bugs-announce] [issue24370] OrderedDict behavior is unclear with misbehaving keys.
report at bugs.python.org
Wed Jun 3 05:01:20 CEST 2015
New submission from Eric Snow:
How well does OrderedDict need to behave in the face of keys with unstable hashes (e.g. define __hash__ with varying results across calls)? I would expect the behavior to be undefined (though non-crashing). Here's an example of a misbehaving key:
FWIW, dict does pretty well even with bad keys. The pure Python OrderedDict does okay.
components: Library (Lib)
nosy: eric.snow, rhettinger
stage: needs patch
title: OrderedDict behavior is unclear with misbehaving keys.
versions: Python 3.5, Python 3.6
Python tracker <report at bugs.python.org>
More information about the New-bugs-announce