kj 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
In <99246143-a853-4041-bc45-eeb648388...@r3g2000vbp.googlegroups.com> Carl
Banks writes:
>On May 14, 1:26=A0pm, kj wrote:
>> I've written a tiny module that I'd like to make available online
>> from my website. =A0This module is not "production-grade" code; it
>> is meant only as an illustratio
On May 14, 1:26 pm, kj wrote:
> I've written a tiny module that I'd like to make available online
> from my website. This module is not "production-grade" code; it
> is meant only as an illustration, but still I'd like to make its
> download and installation as painless as possible.
>
> I could s
I've written a tiny module that I'd like to make available online
from my website. This module is not "production-grade" code; it
is meant only as an illustration, but still I'd like to make its
download and installation as painless as possible.
I could simply bundle everything into a .tgz fil