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 <rep...@bugs.python.org> <http://bugs.python.org/issue18991> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com