News for hackers. Stuff that matters.
Re:Migrating to Python 3 with pleasure by improv32 on Sunday February 04, 2018 @07:44PM (#16305832)
The data structure OrderedDict does what you describe and has been in the stdlib since I think 2.7
Re:Migrating to Python 3 with pleasure by djrobstep on Sunday February 04, 2018 @08:39PM (#16306041)
Indeed, but it's much nicer when it's universal and built-in rather than requiring a specific import and different, more cumbersome syntax.