On Tue, Nov 25, 2008 at 2:42 PM, Bob Ippolito <[EMAIL PROTECTED]> wrote:
> On Tue, Nov 25, 2008 at 2:35 PM, Ben Bangert <[EMAIL PROTECTED]> wrote:
>> On Nov 25, 2008, at 12:43 PM, Mike Orr wrote:
>>
>>> Is it possible to limit a dependency to certain versions of Python?
>>
>> It should be. Setup.py is just a Python file, I don't see why I can't test
>> the Python version and toggle the dependencies. Any code in Pylons using
>> simplejson will need a toggle to try to import the Python 2.6 one first of
>> course. Also, I believe simplejson 2.0.4 has fixes and such that didn't make
>> it for Python 2.6, which means one should be running the latest simplejson
>> even in 2.6. What version made it into Python 2.6?
>
> simplejson 1.9.x made it into python 2.6, with a few fixes.
>
> simplejson 2.x is a couple times faster for encoding and decoding, so
> it's not worth using the version that ships with 2.6 unless you have
> to. There is/was a patch in the queue for 2.6.1 but I think it's still
> waiting for review and probably won't make it (patch was submitted at
> least a month or two ago though, but it's out of my hands).

Also note that the optimizations to the pure python version simplejson
2.x are often faster than 1.9.x with the speedups, so even if you
can't build the extension it's probably better to use simplejson 2.x.
simplejson 2.x with the speedups is on par or better than any of the
other JSON encoders and decoders, and is even faster than cPickle on
occasion.

-bob

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"pylons-discuss" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/pylons-discuss?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to