3 ms·
As a new php -> python programmer here are a couple other things i'd naively like to add to python: Built in json_encode. Type hinting The only reason i deci
by cellis 17y ago
As a new php -> python programmer here are a couple other things i'd naively like to add to python:
Built in json_encode.
Type hinting
The only reason i decided to learn python was because of the free quotas on the google app engine.
I suppose I'm still kind of reeling from the triple whammy of having to learn Django (ok, its not really hard), Python, and the google app engine with its non-relational db all at once. Unlearning relational stuff is much harder than it looks.
- nostrademons 17y agoPython 2.5 ships with simplejson, and in Python 2.6 it's been renamed to plain old json. I'm not sure on the implementation - one of the problems with Python JSON implementations was fragmentation, so if you wanted the standard implementation you'd use simplejson, but if you wanted the fast one you'd use cjson, yet if you wanted the maximally compatible library there was yet another 3rd-party JSON library. I'd like to think that the json module is fast and standards compliant, but I haven't looked at it. I kinda would like type hinting too, although that's a deeply divisive issue in a dynamic language community.