On Wednesday 12 November 2008 19:26:27 Derick Eisenhardt wrote:
> Curiosity Question:
> It appears SimpleJSON is now a "batteries included" library with
> Python 2.6...although now just known as simply "json". I know TG2 has
> been shown to work with Python 2.6 already, but I am curious if the
> SimpleJSON dependency will be replaced with the built in json library
> in future versions. Obviously this would break compatibility with
> Python 2.4 and 2.5 users (which I still use currently, just thinking
> ahead for down the road). Would this mean there would need to be
> different versions of TG2 for Py2.6/3.0+ users than those using 2.5
> and older? Or am I completely wrong on this?

try:
   import json
except ImportError:
   import simplejson as json

usually fixes the issue - unless the api changed. But given the primitiveness 
of simplejson, I doubt that this is the case, and if, it's trivial to work 
around.

Diez

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"TurboGears Trunk" 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/turbogears-trunk?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to