[New-bugs-announce] [issue18991] Overriding OrderedDict.__getitem__() doesn't work
Davi Post
report at bugs.python.org
Mon Sep 9 23:50:06 CEST 2013
New submission from Davi Post:
class MyOrderedDict(OrderedDict):
def __getitem__(self, key):
OrderedDict.__getitem__(self, key)
After setting a key, getting it returns None. See attached.
Am I missing something?
Discovered this when trying to use the dict_type parameter of ConfigParser.RawConfigParser -- caused an AttributeError.
Possibly relevant to http://bugs.python.org/issue9534
----------
components: Library (Lib)
files: OrderedDictTest.py
messages: 197404
nosy: davipo
priority: normal
severity: normal
status: open
title: Overriding OrderedDict.__getitem__() doesn't work
type: behavior
versions: Python 2.7
Added file: http://bugs.python.org/file31703/OrderedDictTest.py
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue18991>
_______________________________________
More information about the New-bugs-announce
mailing list