summaryrefslogtreecommitdiffstats
path: root/Lib/pprint.py
Commit message (Collapse)AuthorAgeFilesLines
* pprint's workhorse _safe_repr() function took time quadratic in the # ofTim Peters2001-05-141-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.
* SF bug[ #423781: pprint.isrecursive() broken.Tim Peters2001-05-141-21/+29
|
* __all__ for several more modulesSkip Montanaro2001-02-121-0/+2
|
* Spelling fixes supplied by Rob W. W. Hooft. All these are fixes in eitherThomas Wouters2000-07-161-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 ;)
* Don't call len() if the value is already cached! Caught by GerritFred Drake1999-12-221-1/+1
| | | | Holl <gerrit.holl@pobox.com>.
* Fix indent error in __format(): del context[objid] at the end shouldGuido van Rossum1999-09-021-1/+2
| | | | | be executed in all cases, not just when it's not a list, tuple or dict. Discovered by Christian Tismer.
* _safe_repr(): Simplify the condition tests in the first possibleFred Drake1999-02-171-7/+2
| | | | return path.
* Mass check-in after untabifying all files that need it.Guido van Rossum1998-03-261-149/+149
|
* Added code to emit trailing ',' for singleton tuples in two places.Guido van Rossum1997-09-141-1/+7
|
* Slight mods to make the module conform to the documentation.Fred Drake1997-07-181-14/+63
|
* Fix a couple of glitches identified by Greg Stein.Fred Drake1997-04-181-4/+3
|
* _safe_repr(): Make the context parameter required; ok since it's only forFred Drake1997-04-161-10/+9
| | | | | internal use. Make sure the maxlevels and level parameters get passed to recursive invocations.
* Muchly changed and improved pprint.py:Fred Drake1997-04-161-110/+167
| | | | | | | - 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
* Checking in a copy of Fred Drake's data structure pretty-printerGuido van Rossum1997-04-161-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).