3 ms·
That list was a little surprising to me. Simplejson at the top, a library I’ve never used which seems to be obviated by the presence of json in the standard lib
by thinkpad20 9y ago
That list was a little surprising to me. Simplejson at the top, a library I’ve never used which seems to be obviated by the presence of json in the standard library (similarly argparse). Surprised to see pymongo above Flask. Also surprised to see Django having 10m more downloads than Flask.
- coldtea 9y ago>Simplejson at the top, a library I’ve never used which seems to be obviated by the presence of json in the standard library json and simplejson are the same modules. It's just that json is based on an older version of simplejson, since the latter is not tied to the Python release cycles, and updates faster. Simplejson also works with older pythons that didn't have json built-in (2.4 etc). People using it is not about needing a JSON because there isn't one in the standard library, it's because it was faster than it. 2 times faster loading, and somewhat faster dumping (depending on json and simplejson version). >* Also surprised to see Django having 10m more downloads than Flask.* Django is much older and more established. When Flask was still a new thing, Django had several versions out and people using it.
- HankB99 9y agoDoes having the package available for 3.x facilitate code migration? Would the references to the builtin in 3.x require other code mods (or just the import statement?)
- coldtea 9y agoNot very familiar (mostly using 2.7 atm), but I think simplejson should be a drop-in replacement to the built-in, and as such shouldn't affect code migration.
- morugin 9y agobut Django is so integrated...