Re: [Tutor] Json encode and decode on Puython 2.4

2013-01-17 Thread Dotan Cohen
On Thu, Jan 17, 2013 at 1:15 AM, Steven D'Aprano wrote: > Python 2.4 is no longer receiving security updates. If you're exposing a > web app on the Internet using Python 2.4, it's just a matter of time > before you're hacked. > > Time to change hosting companies, methinks. > The time to get rid o

Re: [Tutor] Json encode and decode on Puython 2.4

2013-01-16 Thread Prasad, Ramit
Steven D'Aprano wrote: > > On 17/01/13 08:50, Prasad, Ramit 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. > > Python 2.4 supports yield. Thanks for the correction

Re: [Tutor] Json encode and decode on Puython 2.4

2013-01-16 Thread Steven D'Aprano
On 17/01/13 08:15, Dotan Cohen wrote: Hi all, I'm just getting into porting some PHP scripts to Python. One issue that I'm having is that the scripts need to run on a host with Python 2.4 that has neither the json nor simplejson packages available. I figure that I'll have to include the loads() a

Re: [Tutor] Json encode and decode on Puython 2.4

2013-01-16 Thread Steven D'Aprano
On 17/01/13 08:50, Prasad, Ramit 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. Python 2.4 supports yield. -- Steven ___ Tutor ma

Re: [Tutor] Json encode and decode on Puython 2.4

2013-01-16 Thread Dotan Cohen
On Wed, Jan 16, 2013 at 11:50 PM, Prasad, Ramit 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

Re: [Tutor] Json encode and decode on Puython 2.4

2013-01-16 Thread Prasad, Ramit
Dotan Cohen wrote: > > Hi all, I'm just getting into porting some PHP scripts to Python. One > issue that I'm having is that the scripts need to run on a host with > Python 2.4 that has neither the json nor simplejson packages > available. I figure that I'll have to include the loads() and dumps()