3 ms·
I look at it the other way, this is the least effort disk persistence that I have seen in python. A fair amount of dev stuff is reading from disk and putting it
by collyw 4y ago
I look at it the other way, this is the least effort disk persistence that I have seen in python. A fair amount of dev stuff is reading from disk and putting it into some kind of object / dictionary format. I am not really bothered about what it uses under the hood (ok it is interesting enough that I have looked up DMB). To me the he main appeal of this that you can use what appears to be a normal python dictionary and have it save to disk with minimal effort. This is a lot less friction that using a database.
- giraffe_lady 4y agoOh yeah for sure. I don't mean to convey any disdain for dbm itself or for having it rolled into the standard library. Reading and writing custom files for "convenience persistence" or configuration is one of those really common things that you don't usually need to actually do if you know about tools like this. I was just pointing out that the title and even the article seem to associate this system with python per se, rather than understanding it as python's interface to a common and pre-existing system.