Message85821
| Author |
doerwalter |
| Recipients |
doerwalter |
| Date |
2009年04月09日.17:15:26 |
| SpamBayes Score |
2.6109158e-06 |
| Marked as misclassified |
No |
| Message-id |
<1239297330.19.0.24635332127.issue5729@psf.upfronthosting.co.za> |
| In-reply-to |
| Content |
This patchs makes it possible to use tabs for indenting the output of
json.dumps(). With this patch the indent argument can now be either an
integer specifying the number of spaces per indent level or a string
specifying the indent string directly::
json.dumps(list(range(10), indent=3) # three spaces per indent
json.dumps(list(range(10), indent="\t") # one tab per indent |
|
History
|
|---|
| Date |
User |
Action |
Args |
| 2009年04月09日 17:15:30 | doerwalter | set | recipients:
+ doerwalter |
| 2009年04月09日 17:15:30 | doerwalter | set | messageid: <1239297330.19.0.24635332127.issue5729@psf.upfronthosting.co.za> |
| 2009年04月09日 17:15:28 | doerwalter | link | issue5729 messages |
| 2009年04月09日 17:15:28 | doerwalter | create |
|