This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Title: LastUpdatedOrderedDict recipe uses super() unnecessarily
Type: Stage: resolved
Components: Documentation Versions:
Status: closed Resolution: fixed
Dependencies: Superseder:
Assigned To: docs@python Nosy List: docs@python, rhettinger, wim.glenn
Priority: normal Keywords:

Created on 2019-05-13 22:21 by wim.glenn, last changed 2022-04-11 14:59 by admin. This issue is now closed.

Pull Requests
URL Status Linked Edit
PR 13296 merged wim.glenn, 2019-05-13 22:21
Messages (1)
msg342395 - (view) Author: wim glenn (wim.glenn) * Date: 2019-05-13 22:21

    class LastUpdatedOrderedDict(OrderedDict):
        'Store items in the order the keys were last added'

        def __setitem__(self, key, value):
            super().__setitem__(key, value)

Why does it use super().move_to_end(key), isn't self.move_to_end(key) more direct/Pythonic?
Date User Action Args
2022-04-11 14:59:15adminsetgithub: 81090
2019-05-14 02:43:00rhettingersetstatus: open -> closed
resolution: fixed
stage: resolved
2019-05-13 22:21:50wim.glenncreate