Hacker News new | past | comments | ask | show | jobs | submit login

The data structure OrderedDict does what you describe and has been in the stdlib since I think 2.7



Indeed, but it's much nicer when it's universal and built-in rather than requiring a specific import and different, more cumbersome syntax.




Join us for AI Startup School this June 16-17 in San Francisco!

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: