Re:Guido van Rossum: Python 2 end-of-life will be on January...
by thinkpad20 on Tuesday March 13, 2018 @10:13PM
(#16581723)
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.
[ Parent
| on HN ]
Re:Guido van Rossum: Python 2 end-of-life will be on January...
by coldtea on Tuesday March 13, 2018 @10:44PM
(#16581877)
>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.
Re:Guido van Rossum: Python 2 end-of-life will be on January...
by HankB99 on Tuesday March 13, 2018 @11:58PM
(#16582184)
Does 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?)