[issue24370] OrderedDict behavior is unclear with misbehaving keys.

2015-08-05 Thread Eric Snow

Eric Snow added the comment:

Fair enough.

--
resolution:  - not a bug
stage: needs patch - resolved
status: open - closed

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue24370
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue24370] OrderedDict behavior is unclear with misbehaving keys.

2015-06-20 Thread Raymond Hettinger

Raymond Hettinger added the comment:

  I would expect the behavior to be undefined (though non-crashing).

That is all you should expect.

--

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue24370
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue24370] OrderedDict behavior is unclear with misbehaving keys.

2015-06-19 Thread Rose Ames

Changes by Rose Ames r...@happyspork.com:


--
nosy: +superluser

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue24370
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue24370] OrderedDict behavior is unclear with misbehaving keys.

2015-06-02 Thread Eric Snow

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:

class Key:
def __hash__(self):
return randrange(1)

FWIW, dict does pretty well even with bad keys.  The pure Python OrderedDict 
does okay.

--
assignee: eric.snow
components: Library (Lib)
messages: 244727
nosy: eric.snow, rhettinger
priority: normal
severity: normal
stage: needs patch
status: open
title: OrderedDict behavior is unclear with misbehaving keys.
type: behavior
versions: Python 3.5, Python 3.6

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue24370
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com