Guido van Rossum
183fd40987
Fix indent error in __format(): del context[objid] at the end should
...
be executed in all cases, not just when it's not a list, tuple or
dict. Discovered by Christian Tismer.
1999-09-02 15:09:44 +00:00
Fred Drake
d804f4eea0
_safe_repr(): Simplify the condition tests in the first possible
...
return path.
1999-02-17 17:30:52 +00:00
Guido van Rossum
45e2fbc2e7
Mass check-in after untabifying all files that need it.
1998-03-26 21:13:24 +00:00
Guido van Rossum
a1dbe50ec2
Added code to emit trailing ',' for singleton tuples in two places.
1997-09-14 23:21:51 +00:00
Fred Drake
e0ffabe375
Slight mods to make the module conform to the documentation.
1997-07-18 20:42:39 +00:00
Fred Drake
5fd026dc5e
Fix a couple of glitches identified by Greg Stein.
1997-04-18 13:54:13 +00:00
Fred Drake
f39d0516b4
_safe_repr(): Make the context parameter required; ok since it's only for
...
internal use. Make sure the maxlevels and level parameters get
passed to recursive invocations.
1997-04-16 18:55:58 +00:00
Fred Drake
a89fda0fe2
Muchly changed and improved pprint.py:
...
- 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-16 16:59:30 +00:00
Guido van Rossum
5e92affc54
Checking in a copy of Fred Drake's data structure pretty-printer
...
(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).
1997-04-16 00:49:59 +00:00