[Tutor] Json encode and decode on Puython 2.4
Dotan Cohen
dotancohen at gmail.com
Wed Jan 16 22:58:00 CET 2013
On Wed, Jan 16, 2013 at 11:50 PM, Prasad, Ramit
<ramit.prasad at jpmorgan.com> wrote:
> Python 2.4 is quite old and simplejson supports 2.5+. I can see a
> yield in the encoder code, so it is unlikely to be easy to modify
> and get working with 2.4. According to a stack overflow question
> you may want to look at older releases (example: 2.0.9/2.1) as being
> more 2.4 compatible.
> SimpleJson source: https://github.com/simplejson/simplejson
> Change the version in the link to see if PyPi has a different version.
> http://pypi.python.org/pypi/simplejson/2.1.0
>
> I have no idea if you can get the json library to work with 2.4.
> I did not seen anything in my cursory glance that suggested it would
> not.
> http://hg.python.org/cpython-fullhistory/file/8e0b617c6c22/Lib/json/
>
> You may want to see if you can get a newer python installed on
> the machine. You probably want it alt-installed so you are not
> replacing the system expected Python.
>
>
Thanks, Ramit. I'm now trying to install an older simplejson with
simple_install by defining the install directory since I don't have
root on this machine. Unfortunately, installing a newer Python (or
anything else needed by root) is not going to happen on this
particular webhost.
Thanks.
--
Dotan Cohen
http://gibberish.co.il
http://what-is-what.com
More information about the Tutor
mailing list