kj <[email protected]> wrote:
> The module has only one non-standard dependency, described by the
> following code:
>
> if sys.version_info[:2] >= (2, 6):
> import json
> else:
> import simplejson as json
I think
try:
import json
except ImportError:
import simplejson as json
Is more pythonic... You aren't relying on what came with particular
python versions which may not be true in jython/ironpython/etc.
--
Nick Craig-Wood <[email protected]> -- http://www.craig-wood.com/nick
--
http://mail.python.org/mailman/listinfo/python-list