[issue28984] json.dump + indent creates trailing extra spaces

2016-12-16 Thread Knut
Knut added the comment: sorry, I missed that point in the docs. -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscrib

[issue28984] json.dump + indent creates trailing extra spaces

2016-12-15 Thread Ned Deily
Ned Deily added the comment: I agree with Josh's assessment. Sorry! -- nosy: +ned.deily resolution: -> wont fix stage: -> resolved status: open -> closed ___ Python tracker ___

[issue28984] json.dump + indent creates trailing extra spaces

2016-12-15 Thread Josh Rosenberg
Josh Rosenberg added the comment: This is documented behavior for Python 2 ( https://docs.python.org/2/library/json.html#basic-usage ): >Note: Since the default item separator is ', ', the output might include >trailing whitespace when indent is specified. You can use separators=(',', ': >')

[issue28984] json.dump + indent creates trailing extra spaces

2016-12-15 Thread Knut
New submission from Knut: module json python 2.7.12 json.dump(..., indent=4, sort_keys=True) gives me: { "size": { "total": 19106,X "code": 18614,X "data": 492 },X "next_item": 10 } The "X" mark extra trailing space characters which are needless. -