New submission from wim glenn :
Section https://docs.python.org/3/library/collections.html#ordereddict-examples-and-...
class LastUpdatedOrderedDict(OrderedDict):
'Store items in the order the keys were last added'
def __setitem__(self, key, value):
super().__setitem__(key, value)
super().move_to_end(key)
Why does it use super().move_to_end(key), isn't self.move_to_end(key) more direct/Pythonic?
----------
assignee: docs@python
components: Documentation
messages: 342395
nosy: docs@python, rhettinger, wim.glenn
priority: normal
pull_requests: 13209
severity: normal
status: open
title: LastUpdatedOrderedDict recipe uses super() unnecessarily
_______________________________________
Python tracker
https://bugs.python.org/issue36909
_______________________________________