[issue18991] Overriding OrderedDict.__getitem__() doesn't work

2013-09-09 Thread Davi Post
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

[issue18991] Overriding OrderedDict.__getitem__() doesn't work

2013-09-09 Thread Alex Gaynor
Alex Gaynor added the comment: Your __getitem__ never returns the result of OrderedDict.__getitem__ -- nosy: +alex resolution: - invalid status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue18991

[issue18991] Overriding OrderedDict.__getitem__() doesn't work

2013-09-09 Thread Davi Post
Davi Post added the comment: Oops. Thanks. :-{ On Mon, Sep 9, 2013 at 4:56 PM, Alex Gaynor rep...@bugs.python.org wrote: Alex Gaynor added the comment: Your __getitem__ never returns the result of OrderedDict.__getitem__ -- nosy: +alex resolution: - invalid status: open -