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

2014-01-04 Thread Nick Coghlan
Nick Coghlan added the comment: Closing this as a duplicate of issue 7434 (which is about redesigning pprint to make it easier to add support for new types) -- nosy: +ncoghlan resolution: accepted -> duplicate stage: patch review -> committed/rejected status: open -> closed superseder:

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

2011-12-15 Thread Giampaolo Rodola'
Changes by Giampaolo Rodola' : -- nosy: +giampaolo.rodola ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http:/

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

2010-11-08 Thread Rodrigo Bernardo Pimentel
Changes by Rodrigo Bernardo Pimentel : -- nosy: +rbp ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail

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

2010-10-01 Thread Nick Craig-Wood
Nick Craig-Wood added the comment: Terry J. Reedy (terry.reedy) wrote: > > IMHO pprint should be able to make a decent job of all the built in types > > Agreed, already true as far as I know, and irrelevant. This issue is not > about built-in types in the builtins module, as documented Lib Ref

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

2010-09-29 Thread Terry J. Reedy
Terry J. Reedy added the comment: >IMHO pprint should be able to make a decent job of all the built in types Agreed, already true as far as I know, and irrelevant. This issue is not about built-in types in the builtins module, as documented Lib Ref chapter 5 *Built-in Types*. Collections is

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

2010-09-29 Thread Nick Craig-Wood
Nick Craig-Wood added the comment: Raymond Hettinger (rhettinger) wrote: > Ben, I don't think there is any value is opening more issues like > pprint-doesn't-handle-object-x (named tuples, defautdicts, deques, > generators, etc). > > As it is currently designed, pprint doesn't offer usable ho

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

2010-09-28 Thread Raymond Hettinger
Raymond Hettinger added the comment: Ben, I don't think there is any value is opening more issues like pprint-doesn't-handle-object-x (named tuples, defautdicts, deques, generators, etc). As it is currently designed, pprint doesn't offer usable hooks and it is not easy to build-out to handle

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

2010-09-28 Thread Ben Bass
Ben Bass added the comment: Same applies to collections.deque, which seems closely related (being another collections class). Can this get addressed here or should I open another issue? (just been pprinting defaultdict(deque) objects, which clearly fails :) -- nosy: +bpb ___

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

2010-08-25 Thread Éric Araujo
Éric Araujo added the comment: BTW, Tarek’s name is valid UTF-8 in py3k. -- ___ Python tracker ___ ___ Python-bugs-list mailing list U

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

2010-08-25 Thread Éric Araujo
Éric Araujo added the comment: Jack, can you update your patch to reflect Terry’s review? Amaury, have you opened a feature request about your registration idea? -- nosy: +eric.araujo ___ Python tracker __

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

2010-07-22 Thread Amaury Forgeot d'Arc
Amaury Forgeot d'Arc added the comment: Patch looks good to me. (Some day the pprint module should grow some way to register repr for user types, so we can stop adding special cases; but defaultdict() is a builtin) -- nosy: +amaury.forgeotdarc resolution: -> accepted

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

2010-07-08 Thread Raymond Hettinger
Changes by Raymond Hettinger : -- nosy: +fdrake ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.pyth

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

2010-07-08 Thread Terry J. Reedy
Terry J. Reedy added the comment: I removed 'a set or' from the title since sets are no longer an issue. Since .fromkeys is a class method, it should be called on a class rather than an instance. I was initially fooled by the irrelevant addition of '(int)'. 100 is unnecessarily large for exam