python-cjson 1.0.3x4 released - new feature



This is an enhanced version of python-cjson, the fast JSON encoder/decoder
supporting extension functions to encode/decode arbitrary objects.

New feature: Optional automatic conversion of dict keys to string.

Since JSON specification does not allow non-string keys in objects, it's
very useful to add optional automatic conversion of dictionary keys. This
could be useful when porting code originally written for simplejson that
does this by default. The feature can be enabled by passing key2str=True
keyword argument to the encode() function. Default behaviour of python-cjson
has been preserved, so without this keyword argument encoding of non-string
dictionary keys will raise EncodeError.

Upgrade only if you need this new feature. This version includes new unit
tests for the above feature. All existing and new unit tests are passed with
python 2.3.5, 2.4.3 and 2.5.0 without problems. But silent bugs may exists.

Download, examples and more information:
http://python.cx.hu/python-cjson

.



Relevant Pages

  • Re: Photo gallery of new HP-35s
    ... info on the calculator itself, not to mention photos, I bought one ... the program labels are limited to 26 single letters. ... the new 35s has the 'goto' feature - the ability to branch ... person and I am nowhere near as bothered by the four arrow keys as I ...
    (comp.sys.hp48)
  • Re: Photo gallery of new HP-35s
    ... info on the calculator itself, not to mention photos, I bought one ... the program labels are limited to 26 single letters. ... the new 35s has the 'goto' feature - the ability to branch ... person and I am nowhere near as bothered by the four arrow keys as I ...
    (comp.sys.hp48)
  • Re: Photo gallery of new HP-35s
    ... info on the calculator itself, not to mention photos, I bought one ... the new 35s has the 'goto' feature - the ability to branch ... person and I am nowhere near as bothered by the four arrow keys as I ...
    (comp.sys.hp48)
  • Re: Word 2007 Change Case feature??
    ... The keyboard access key features I was ... same thing (the accelerator keys on the menu are the same as in the dialog). ... > If you use the Help feature in Word to search "Change Case", ... No mention is made of the Shift F3 shortcut which is ...
    (microsoft.public.word.docmanagement)