[issue5131] pprint doesn't know how to print a set or a defaultdict

2009-03-31 Thread Nick Craig-Wood
Nick Craig-Wood n...@craig-wood.com added the comment: Oops, my bad, I assumed the patch would by for py3k! I applied it to trunk and tested it. It works very well - thank you for fixing that :-) -- ___ Python tracker rep...@bugs.python.org

[issue5131] pprint doesn't know how to print a set or a defaultdict

2009-03-30 Thread Nick Craig-Wood
Nick Craig-Wood n...@craig-wood.com added the comment: I couldn't actually get this patch to apply to the py3k branch :-( $ patch -p0 --dry-run issue_5131.patch patching file Misc/NEWS Hunk #1 FAILED at 2598. 1 out of 1 hunk FAILED -- saving rejects to file Misc/NEWS.rej patching file

[issue5131] pprint doesn't know how to print a set or a defaultdict

2009-03-26 Thread Jack Diederich
Jack Diederich jackd...@gmail.com added the comment: sets and frozensets have already been updated to format like lists. This patch formats defaultdicts like dicts. -- keywords: +patch nosy: +jackdied Added file: http://bugs.python.org/file13425/issue_5131.patch

[issue5131] pprint doesn't know how to print a set or a defaultdict

2009-02-02 Thread Nick Craig-Wood
New submission from Nick Craig-Wood n...@craig-wood.com: I noticed this the other day when debugging a program that neither set() nor defaultdict() pprint() properly Same under 3.1 and 2.5 (Not tried 2.6/2.7 but I assume it is the same) pprint(set(range(100))) set([0, 1, 2, 3, 4, 5, 6, 7, 8,