[New-bugs-announce] [issue24726] OrderedDict has strange behaviour when dict.__setitem__ is used.

Mark Shannon report at bugs.python.org
Sun Jul 26 12:20:52 CEST 2015


New submission from Mark Shannon:

Setting an item in an ordered dict via dict.__setitem__, or by using it as an object dictionary and setting an attribute on that object, creates a dictionary whose repr is:

OrderedDict([<NULL>])

Test case attached.

----------
components: Library (Lib)
files: test.py
messages: 247421
nosy: Mark.Shannon, eric.snow
priority: normal
severity: normal
status: open
title: OrderedDict has strange behaviour when dict.__setitem__ is used.
type: behavior
versions: Python 3.6
Added file: http://bugs.python.org/file40028/test.py

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


More information about the New-bugs-announce mailing list