4 ms·
I elect to stick with the standard library in all cases, so I know how my software will perform everywhere without a redundant external dependency. Sticking wit
by jedsmith 15y ago
I elect to stick with the standard library in all cases, so I know how my software will perform everywhere without a redundant external dependency. Sticking with the standard library means you'll eventually get those improvements, too.
- bretthoerner 15y ago> a redundant external dependency Is pip install that hard? Surely any deployed project is already managing a requirements.txt/buildout/setup.py/etc. > means you'll eventually get those improvements The C speedup extension for simplejson existed well before it was merged into Python stdlib as "json". Are you so sure you'll eventually get said improvement?
- masklinn 15y ago> Sticking with the standard library means you'll eventually get those improvements, too. Not in 2.x, you won't.
- wladimir 15y agoBest of both worlds would be to try to import simplejson, and if that fails, fall back to the standard library json. As they have the same interface, that's trivial to do.