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

2009-03-31 Thread Nick Craig-Wood
Nick Craig-Wood 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 ___

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

2009-03-30 Thread Jack Diederich
Jack Diederich added the comment: py3k is different enough (esp the NEWS) that I'll have to apply it by hand. This patch was against the 2.x trunk. -- ___ Python tracker ___ ___

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

2009-03-30 Thread Nick Craig-Wood
Nick Craig-Wood 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 Misc/ACKS Hunk #1 succeeded

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

2009-03-26 Thread Jack Diederich
Jack Diederich 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 ___ P

[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 : 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, 9, 10, 11, 12, 13