Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Fixed issue #2888. Now the behaviour of pprint when working with nested | Facundo Batista | 2008-06-21 | 1 | -1/+1 |
| | | | | structures follows the common sense (and works like in 2.5 and 3.0). | ||||
* | #1713041: fix pprint's handling of maximum depth. | Georg Brandl | 2008-05-12 | 1 | -3/+7 |
| | |||||
* | Shorter pprint's for empty sets and frozensets. Fix indentation of ↵ | Raymond Hettinger | 2008-01-24 | 1 | -2/+8 |
| | | | | frozensets. Add tests including two complex data structures. | ||||
* | Let pprint() support sets and frozensets (suggested by David Mertz). | Raymond Hettinger | 2008-01-23 | 1 | -2/+15 |
| | |||||
* | #1351692: in pprint, always call format() for dict and list items to enable | Georg Brandl | 2008-01-20 | 1 | -55/+60 |
| | | | | custom formatting of contents via subclassing PrettyPrinter. | ||||
* | pprint functions used to sort a dict (by key) if and only if | Tim Peters | 2006-06-02 | 1 | -1/+1 |
| | | | | | | | | | | | the output required more than one line. "Small" dicts got displayed in seemingly random order (the hash-induced order produced by dict.__repr__). None of this was documented. Now pprint functions always sort dicts by key, and the docs promise it. This was proposed and agreed to during the PyCon 2006 core sprint -- I just didn't have time for it before now. | ||||
* | Change PrettyPrinter.pprint(), so that output is written directly to the | Walter Dörwald | 2005-11-11 | 1 | -1/+2 |
| | | | | | | output stream, instead of writing it to a StringIO first and writing the result of this to the output stream. This should speed up the initial output. | ||||
* | Fix pprint to be able to handle objects that don't have a __repr__ | Walter Dörwald | 2004-11-15 | 1 | -2/+2 |
| | | | | attribute. Fixes SF bug #1065456. | ||||
* | typo - fixes 954030. | Skip Montanaro | 2004-05-14 | 1 | -2/+2 |
| | |||||
* | Replace backticks with repr() or "%r" | Walter Dörwald | 2004-02-12 | 1 | -3/+3 |
| | | | | From SF patch #852334. | ||||
* | Add parameters indent, width and depth to pprint.pprint() and pprint.pformat() | Walter Dörwald | 2003-12-03 | 1 | -4/+5 |
| | | | | and pass them along to the PrettyPrinter constructor. | ||||
* | Patch #750542: pprint now will pretty print subclasses of list, tuple | Walter Dörwald | 2003-12-03 | 1 | -9/+13 |
| | | | | and dict too, as long as they don't overwrite __repr__(). | ||||
* | Revert 1.25, as overloaded __repr__ is not considered. | Martin v. Löwis | 2003-06-07 | 1 | -8/+8 |
| | |||||
* | Patch #750542: Use issubclass instead of type identity. | Martin v. Löwis | 2003-06-07 | 1 | -8/+8 |
| | |||||
* | - PrettyPrinter.isreadable(), .isrecursive(): | Fred Drake | 2002-12-31 | 1 | -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. | ||||
* | Change the "__ private" names to "_ protected"; this has been a pain for | Fred Drake | 2002-07-08 | 1 | -31/+31 |
| | | | | subclassing so many times it should simply be changed. | ||||
* | Replace boolean test with is None. | Raymond Hettinger | 2002-06-01 | 1 | -1/+1 |
| | |||||
* | Partial introduction of bools where appropriate. | Guido van Rossum | 2002-04-07 | 1 | -21/+21 |
| | |||||
* | Add an experimental mechanism to support extending the pprint formatting. | Fred Drake | 2002-04-02 | 1 | -9/+13 |
| | | | | Partly responds to SF bug #505152. | ||||
* | __format(): Applied SF patch #482003 by Skip to fix multiline dict | Barry Warsaw | 2001-11-28 | 1 | -1/+1 |
| | | | | | | | | output. Patch includes additional test case test_basic_line_wrap(). This patch is a candidate for Python 2.1.2. | ||||
* | Whitespace normalization. | Tim Peters | 2001-11-13 | 1 | -1/+1 |
| | |||||
* | Brute-force performance hackery; buys back about 20% of the time for | Fred Drake | 2001-11-01 | 1 | -121/+165 |
| | | | | saferepr(), a bit less for pformat(). | ||||
* | Remove obsolete email address. | Fred Drake | 2001-10-09 | 1 | -1/+1 |
| | |||||
* | Make pprint more locale-friendly; patch contributed by Denis S. Otkidach. | Fred Drake | 2001-09-04 | 1 | -3/+21 |
| | | | | This closes SF patch #451538. | ||||
* | pprint's workhorse _safe_repr() function took time quadratic in the # of | Tim Peters | 2001-05-14 | 1 | -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 Peters | 2001-05-14 | 1 | -21/+29 |
| | |||||
* | __all__ for several more modules | Skip Montanaro | 2001-02-12 | 1 | -0/+2 |
| | |||||
* | Spelling fixes supplied by Rob W. W. Hooft. All these are fixes in either | Thomas Wouters | 2000-07-16 | 1 | -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 Gerrit | Fred Drake | 1999-12-22 | 1 | -1/+1 |
| | | | | Holl <gerrit.holl@pobox.com>. | ||||
* | Fix indent error in __format(): del context[objid] at the end should | Guido van Rossum | 1999-09-02 | 1 | -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 possible | Fred Drake | 1999-02-17 | 1 | -7/+2 |
| | | | | return path. | ||||
* | Mass check-in after untabifying all files that need it. | Guido van Rossum | 1998-03-26 | 1 | -149/+149 |
| | |||||
* | Added code to emit trailing ',' for singleton tuples in two places. | Guido van Rossum | 1997-09-14 | 1 | -1/+7 |
| | |||||
* | Slight mods to make the module conform to the documentation. | Fred Drake | 1997-07-18 | 1 | -14/+63 |
| | |||||
* | Fix a couple of glitches identified by Greg Stein. | Fred Drake | 1997-04-18 | 1 | -4/+3 |
| | |||||
* | _safe_repr(): Make the context parameter required; ok since it's only for | Fred Drake | 1997-04-16 | 1 | -10/+9 |
| | | | | | internal use. Make sure the maxlevels and level parameters get passed to recursive invocations. | ||||
* | Muchly changed and improved pprint.py: | Fred Drake | 1997-04-16 | 1 | -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-printer | Guido van Rossum | 1997-04-16 | 1 | -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). |