patx/pickledb

Switching to OrderedDict

acimnotes opened this issue · 2 comments

Hi, thank you for reading this.
What do you think about this idea to switch from an ordinary dictionary to the OrderedDict? I find that most of the times in my projects I need data to be sorted by keys so I have to do it manually. I thought maybe I'm not the only one and we can all benefit from making it a built-in feature? :) OrderedDict is located in the "collections" std-lib module.

Dictionaries are ordered in Python 3.6+

Oh, thank you, I didn't know about that. I left Python several years ago - never made it to Python 3. I first moved to Golang and then to good old PHP after realizing that Golang was too low level for my web needs while in PHP version 7.3 fixed all of the problems that caused me to move to Python years ago. But I still have a small project written in Python 2.7 where I use this cute json db. This ticket can be closed now I guess. Good bye.