Wiadomość napisana przez S Joshua Swamidass w dniu 13 paź
2012, o godz. 05:24:
> Hello,
>
> It seemed like there were several requests to enable ini file parsing with
> argparse. I wrote module to do this.
> I'd be curious to know if this is useful and anyone has a better approach.
This maili
Use this script on a json file and observe all the trailing spaces
generated. (screenshot attached.)
#!/usr/bin/env python
"""
Pretty print json file.
"""
if __name__ == '__main__':
import sys
import json
if '-h' in sys.argv or '--help' in sys.argv:
print "Usage: ppjson "
On 2012-10-13, at 08:40 , Leo wrote:
> Use this script on a json file and observe all the trailing spaces
> generated. (screenshot attached.)
1. Why didn't you report that on the tracker?
2. Why are you rewriting json.tool?
___
Python-Dev mailing list
P
On Sat, Oct 13, 2012 at 5:40 PM, Leo wrote:
> Use this script on a json file and observe all the trailing spaces
> generated. (screenshot attached.)
Confirmed as still the case in Python 3 (specifically, with an early
alpha of 3.3 and with 3.2 for Windows). It's because the item
separator is '; '