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 rbp
Recipients draghuram, georg.brandl, josm, nnorwitz, rbp
Date 2008-05-12.04:09:24
SpamBayes Score 0.020082418
Marked as misclassified No
Message-id <1210565367.05.0.978047758359.issue1713041@psf.upfronthosting.co.za>
In-reply-to
Content
It seems that somewhere along the road between revision 55144 (where the
first patch was generated) and current trunk (revision 63129),
PrettyPrinter._format has stopped handling depth!

I've attached a patch that fixes this, along with the fixes this issue
originally proposed (including the tests and documentation updates).
With this patch, unit tests and the documentation's doctests all pass.

BTW, doctesting Doc/library/pprint.rst with optionflags=doctest.ELLIPSIS
erroneously interprets pprint's '...' (indicating depth exceeded) as
doctest ellipses! Testing without ELLIPSIS gives an error on output with
something like "[<Recursion on list with id=...>]", testing with it
hides errors. Ugh!
History
Date User Action Args
2008-05-12 04:09:28rbpsetspambayes_score: 0.0200824 -> 0.020082418
recipients: + rbp, nnorwitz, georg.brandl, draghuram, josm
2008-05-12 04:09:28rbpsetspambayes_score: 0.0200824 -> 0.0200824
messageid: <1210565367.05.0.978047758359.issue1713041@psf.upfronthosting.co.za>
2008-05-12 04:09:26rbplinkissue1713041 messages
2008-05-12 04:09:25rbpcreate