Sunday, April 29, 2012

Python 2.5

try:
   ...
catch Exception, e:  # 2.6+ uses catch Exception as e
  ...


try:
    import json # only in Python 2.6+
except ImportError:
    import simplejson as json # but appengine only has Python 2.5

No comments: