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
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
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 -