This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author eric.araujo
Recipients amaury.forgeotdarc, eric.araujo, marystern, serprex
Date 2011-07-15.16:00:07
SpamBayes Score 2.0957514e-09
Marked as misclassified No
Message-id <1310745609.08.0.163229439202.issue6743@psf.upfronthosting.co.za>
In-reply-to
Content
Here’s a first draft at a patch.  I’ve added a module-level print function and a PrettyPrinter.print method which does the real work.

The functions have a signature compatible with print, but I have changed one default value: sep defaults to ',\n', because I think that the output is more useful and more pleasing (otherwise you’d have strange-looking indentation with containers).

If this looks good, I’ll work on doc and tests.  I guess I’ll reuse the helpers in test_print.
History
Date User Action Args
2011-07-15 16:00:09eric.araujosetrecipients: + eric.araujo, amaury.forgeotdarc, marystern, serprex
2011-07-15 16:00:09eric.araujosetmessageid: <1310745609.08.0.163229439202.issue6743@psf.upfronthosting.co.za>
2011-07-15 16:00:08eric.araujolinkissue6743 messages
2011-07-15 16:00:08eric.araujocreate