summaryrefslogtreecommitdiff
path: root/Lib/pprint.py
AgeCommit message (Collapse)AuthorLines
2003-06-07Revert 1.25, as overloaded __repr__ is not considered.Martin v. Löwis-8/+8
2003-06-07Patch #750542: Use issubclass instead of type identity.Martin v. Löwis-8/+8
2002-12-31- PrettyPrinter.isreadable(), .isrecursive():Fred Drake-21/+16
Pass the right number of args to .format(). (Caught by pychecker.) - Protect the global namespace more carefully. - Don't use the types module now that we don't need to.
2002-07-08Change the "__ private" names to "_ protected"; this has been a pain forFred Drake-31/+31
subclassing so many times it should simply be changed.
2002-06-01Replace boolean test with is None.Raymond Hettinger-1/+1
2002-04-07Partial introduction of bools where appropriate.Guido van Rossum-21/+21
2002-04-02Add an experimental mechanism to support extending the pprint formatting.Fred Drake-9/+13
Partly responds to SF bug #505152.
2001-11-28__format(): Applied SF patch #482003 by Skip to fix multiline dictBarry Warsaw-1/+1
output. Patch includes additional test case test_basic_line_wrap(). This patch is a candidate for Python 2.1.2.
2001-11-13Whitespace normalization.Tim Peters-1/+1
2001-11-01Brute-force performance hackery; buys back about 20% of the time forFred Drake-113/+157
saferepr(), a bit less for pformat().
2001-10-09Remove obsolete email address.Fred Drake-1/+1
2001-09-04Make pprint more locale-friendly; patch contributed by Denis S. Otkidach.Fred Drake-3/+21
This closes SF patch #451538.
2001-05-14pprint's workhorse _safe_repr() function took time quadratic in the # ofTim Peters-38/+27
elements when crunching a list, dict or tuple. Now takes linear time instead -- huge speedup for even moderately large containers, and the code is notably simpler too. Added some basic "is the output correct?" tests to test_pprint.
2001-05-14SF bug[ #423781: pprint.isrecursive() broken.Tim Peters-21/+29
2001-02-12__all__ for several more modulesSkip Montanaro-0/+2
2000-07-16Spelling fixes supplied by Rob W. W. Hooft. All these are fixes in eitherThomas Wouters-1/+1
comments, docstrings or error messages. I fixed two minor things in test_winreg.py ("didn't" -> "Didn't" and "Didnt" -> "Didn't"). There is a minor style issue involved: Guido seems to have preferred English grammar (behaviour, honour) in a couple places. This patch changes that to American, which is the more prominent style in the source. I prefer English myself, so if English is preferred, I'd be happy to supply a patch myself ;)
1999-12-22Don't call len() if the value is already cached! Caught by GerritFred Drake-1/+1
Holl <gerrit.holl@pobox.com>.
1999-09-02Fix indent error in __format(): del context[objid] at the end shouldGuido van Rossum-1/+2
be executed in all cases, not just when it's not a list, tuple or dict. Discovered by Christian Tismer.
1999-02-17_safe_repr(): Simplify the condition tests in the first possibleFred Drake-7/+2
return path.
1998-03-26Mass check-in after untabifying all files that need it.Guido van Rossum-141/+141
1997-09-14Added code to emit trailing ',' for singleton tuples in two places.Guido van Rossum-1/+7
1997-07-18Slight mods to make the module conform to the documentation.Fred Drake-14/+63
1997-04-18Fix a couple of glitches identified by Greg Stein.Fred Drake-4/+3
1997-04-16_safe_repr(): Make the context parameter required; ok since it's only forFred Drake-10/+9
internal use. Make sure the maxlevels and level parameters get passed to recursive invocations.
1997-04-16Muchly changed and improved pprint.py:Fred Drake-91/+148
- handles recursive data structures - formatting based on a PrettyPrinter object - allows a maximum nesting depth to be specified - provides safe repr()-like function which does not pretty-print
1997-04-16Checking in a copy of Fred Drake's data structure pretty-printerGuido van Rossum-0/+143
(with some slight formatting changes). Feature requests: - Make it a class (everything should be a class); - support recursive data structures (like pp.py on the ftp contrib site).