3 ms·
Also ordereddicts provide methods to move items to the start or end, and remove items specifically at the start or end, not so for regular dicts.
by masklinn 7y ago
Also ordereddicts provide methods to move items to the start or end, and remove items specifically at the start or end, not so for regular dicts.
- xapata 7y agodict has popitem for removing at the end. That used to be arbitrary, but now it (de facto) means last-inserted.