| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
|
|
| |
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.
|
| |
|
| |
|
|
|
|
|
|
|
|
|
|
| |
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 ;)
|
|
|
|
| |
Holl <gerrit.holl@pobox.com>.
|
|
|
|
|
| |
be executed in all cases, not just when it's not a list, tuple or
dict. Discovered by Christian Tismer.
|
|
|
|
| |
return path.
|
| |
|
| |
|
| |
|
| |
|
|
|
|
|
| |
internal use. Make sure the maxlevels and level parameters get
passed to recursive invocations.
|
|
|
|
|
|
|
| |
- 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
|
|
(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).
|