On Fri, Jul 31, 2020 at 10:31 AM Guido van Rossum firstname.lastname@example.org wrote:
So maybe we need to add dict.ordered() which returns a view on the items that is a Sequence rather than a set? Or ordereditems(), orderedkeys() and orderedvalues()?
I for one would be +1 on this idea.
On the bike shed hew: oitems(), okeys(), and ovalues() would be much shorter, and shouldn't be too difficult to read once they get established (though i am sure many will differ on this point).
"I've never met a Kentucky man who wasn't either thinking about going home or actually going home." - Happy Chandler