On Fri, Jan 15, 2010 at 4:13 PM, Anand Chitipothu <anandol...@gmail.com>wrote:

> On Fri, Jan 15, 2010 at 4:00 PM, Baishampayan Ghose <b.gh...@gmail.com>
> wrote:
> >> It is a clever hack, taking advantage of the nature of the data. But
> >> it is far more faster than the other approaches posted here.
> >
> > I thought eval was evil :)
> The date looks like valid json. You can use simplejson.loads instead of
> eval.

Don't the '=>' characters mess things up?

One of the nice things about the repr of Python objects is that they're
almost valid JSON. The same can't be said for PHP though.

BangPypers mailing list

Reply via email to