[docs] json module documentation error

Sandro Tosi sandro.tosi at gmail.com
Tue Apr 12 19:42:56 CEST 2011


Hi Todd,
thanks for your email.

On Tue, Apr 12, 2011 at 04:29, Todd DeLuca <todddeluca at gmail.com> wrote:
> Hi,
> The 2.7 docs for the json module online
> (http://docs.python.org/library/json.html) say:
>
> If indent is a non-negative integer, then JSON array elements and object
> members will be pretty-printed with that indent level. An indent level of 0
> will only insert newlines. None (the default) selects the most compact
> representation.
>
> I believe it should read, "An indent level of less than zero will only
> insert newlines."  Some example output follows:

The problem is mainly http://bugs.python.org/issue10019 but I'll try
to improve the doc too. I'm preparing an updated patch as of now.

Regards,
-- 
Sandro Tosi (aka morph, morpheus, matrixhasu)
My website: http://matrixhasu.altervista.org/
Me at Debian: http://wiki.debian.org/SandroTosi


More information about the docs mailing list