Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Added tests for more builtin types. | Serhiy Storchaka | 2015-05-16 | 1 | -3/+6 |
| | |||||
* | Issue #19137: The pprint module now correctly formats empty set and frozenset | Serhiy Storchaka | 2013-10-02 | 1 | -24/+80 |
| | | | | and instances of set and frozenset subclasses. | ||||
* | remove archaic functions from test_support | Ezio Melotti | 2010-01-24 | 1 | -35/+32 |
| | |||||
* | convert usage of fail* to assert* | Benjamin Peterson | 2009-06-30 | 1 | -4/+4 |
| | |||||
* | don't rely on the order dict repr #5605 | Benjamin Peterson | 2009-03-30 | 1 | -2/+2 |
| | |||||
* | Fixed issue #2888. Now the behaviour of pprint when working with nested | Facundo Batista | 2008-06-21 | 1 | -0/+11 |
| | | | | 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 | -0/+15 |
| | |||||
* | Shorter pprint's for empty sets and frozensets. Fix indentation of ↵ | Raymond Hettinger | 2008-01-24 | 1 | -0/+192 |
| | | | | frozensets. Add tests including two complex data structures. | ||||
* | pprint functions used to sort a dict (by key) if and only if | Tim Peters | 2006-06-02 | 1 | -4/+31 |
| | | | | | | | | | | | 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. | ||||
* | Replace backticks with repr() or "%r" | Walter Dörwald | 2004-02-12 | 1 | -13/+13 |
| | | | | From SF patch #852334. | ||||
* | Add parameters indent, width and depth to pprint.pprint() and pprint.pformat() | Walter Dörwald | 2003-12-03 | 1 | -0/+6 |
| | | | | 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 | -4/+39 |
| | | | | and dict too, as long as they don't overwrite __repr__(). | ||||
* | Make sure PrettyPrinter methods that mirror the module-level | Fred Drake | 2002-12-31 | 1 | -3/+27 |
| | | | | | convenience functions isreadable() and isrecursive() work the same way as the convenience functions. | ||||
* | Standardize behavior: no docstrings in test functions. | Guido van Rossum | 2002-08-22 | 1 | -5/+6 |
| | |||||
* | Get rid of relative imports in all unittests. Now anything that | Barry Warsaw | 2002-07-23 | 1 | -2/+1 |
| | | | | | | | | | | | imports e.g. test_support must do so using an absolute package name such as "import test.test_support" or "from test import test_support". This also updates the README in Lib/test, and gets rid of the duplicate data dirctory in Lib/test/data (replaced by Lib/email/test/data). Now Tim and Jack can have at it. :) | ||||
* | Add an experimental mechanism to support extending the pprint formatting. | Fred Drake | 2002-04-02 | 1 | -0/+21 |
| | | | | Partly responds to SF bug #505152. | ||||
* | __format(): Applied SF patch #482003 by Skip to fix multiline dict | Barry Warsaw | 2001-11-28 | 1 | -0/+19 |
| | | | | | | | | output. Patch includes additional test case test_basic_line_wrap(). This patch is a candidate for Python 2.1.2. | ||||
* | Change the PyUnit-based tests to use the test_main() approach. This | Fred Drake | 2001-09-20 | 1 | -1/+7 |
| | | | | | allows using the tests with unittest.py as a script. The tests will still run when run as a script themselves. | ||||
* | Patch #445762: Support --disable-unicode | Martin v. Löwis | 2001-08-17 | 1 | -3/+8 |
| | | | | | | | | - Do not compile unicodeobject, unicodectype, and unicodedata if Unicode is disabled - check for Py_USING_UNICODE in all places that use Unicode functions - disables unicode literals, and the builtin functions - add the types.StringTypes list - remove Unicode literals from most tests. | ||||
* | Convert a couple of comments to docstrings -- PyUnit can use these when | Fred Drake | 2001-05-14 | 1 | -2/+2 |
| | | | | the regression test is run in verbose mode. | ||||
* | pprint's workhorse _safe_repr() function took time quadratic in the # of | Tim Peters | 2001-05-14 | 1 | -1/+17 |
| | | | | | | | 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. | ||||
* | Convert the pprint test to use PyUnit. | Fred Drake | 2001-05-14 | 1 | -35/+57 |
| | |||||
* | SF bug[ #423781: pprint.isrecursive() broken. | Tim Peters | 2001-05-14 | 1 | -0/+36 |